Fix buffer filling problem
This commit is contained in:
parent
480bfbae78
commit
5d49473f91
@ -460,6 +460,7 @@ void extractdirname(char *dir, const char *path) {
|
|||||||
const char *p1 = path;
|
const char *p1 = path;
|
||||||
char *p2, *p3;
|
char *p2, *p3;
|
||||||
p3 = p2 = dir;
|
p3 = p2 = dir;
|
||||||
|
*p3 = NUL;
|
||||||
while(*p1) {
|
while(*p1) {
|
||||||
if(isslash(*p1))
|
if(isslash(*p1))
|
||||||
p2 = p3;
|
p2 = p3;
|
||||||
|
Reference in New Issue
Block a user