Fix buffer filling problem

This commit is contained in:
Alexander S. Aganichev 2003-04-07 10:21:30 +00:00
parent 480bfbae78
commit 5d49473f91

View File

@ -460,6 +460,7 @@ void extractdirname(char *dir, const char *path) {
const char *p1 = path;
char *p2, *p3;
p3 = p2 = dir;
*p3 = NUL;
while(*p1) {
if(isslash(*p1))
p2 = p3;