projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a3bda2
)
Fix buffer underrun noted and solved by Larry Doolittle.
author
Matt Kraai
<kraai@debian.org>
Thu, 19 Apr 2001 14:56:23 +0000
(14:56 -0000)
committer
Matt Kraai
<kraai@debian.org>
Thu, 19 Apr 2001 14:56:23 +0000
(14:56 -0000)
coreutils/dirname.c
patch
|
blob
|
history
dirname.c
patch
|
blob
|
history
diff --git
a/coreutils/dirname.c
b/coreutils/dirname.c
index 8313e99c692c26af3ec34578da561b08acdcde2e..935a8313c406d2e8ff646940a7c5ed6a2b954166 100644
(file)
--- a/
coreutils/dirname.c
+++ b/
coreutils/dirname.c
@@
-37,7
+37,7
@@
extern int dirname_main(int argc, char **argv)
argv++;
s=*argv+strlen(*argv)-1;
- while (s
!=
*argv && *s == '/') {
+ while (s
>
*argv && *s == '/') {
*s-- = '\0';
}
s = strrchr(*argv, '/');
diff --git
a/dirname.c
b/dirname.c
index 8313e99c692c26af3ec34578da561b08acdcde2e..935a8313c406d2e8ff646940a7c5ed6a2b954166 100644
(file)
--- a/
dirname.c
+++ b/
dirname.c
@@
-37,7
+37,7
@@
extern int dirname_main(int argc, char **argv)
argv++;
s=*argv+strlen(*argv)-1;
- while (s
!=
*argv && *s == '/') {
+ while (s
>
*argv && *s == '/') {
*s-- = '\0';
}
s = strrchr(*argv, '/');