mirror of
https://github.com/sheumann/hush.git
synced 2024-08-28 09:28:56 +00:00
Fix buffer underrun noted and solved by Larry Doolittle.
This commit is contained in:
parent
0a3bda2c53
commit
3ce79338e6
@ -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, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user