commit | 3ce79338e66d37e9313c0a4bde78d21822402c09 | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Thu Apr 19 14:56:23 2001 +0000 |
committer | Matt Kraai <kraai@debian.org> | Thu Apr 19 14:56:23 2001 +0000 |
tree | b1a5c48ecb4135a1ada29cead4b92058e51e55e2 | |
parent | 0a3bda2c53c26f59a4633118cb1df2b911d0d96b [diff] [blame] |
Fix buffer underrun noted and solved by Larry Doolittle.
diff --git a/dirname.c b/dirname.c index 8313e99..935a831 100644 --- a/dirname.c +++ b/dirname.c
@@ -37,7 +37,7 @@ argv++; s=*argv+strlen(*argv)-1; - while (s != *argv && *s == '/') { + while (s > *argv && *s == '/') { *s-- = '\0'; } s = strrchr(*argv, '/');