fix segmentation fault in basename() and dirname()

SVN revision: 55632
This commit is contained in:
Vincent Torri 2010-12-18 18:30:32 +00:00
parent 4e50c40cb0
commit 741aaf1016
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-12-18 Vincent Torri <doursse at users dot sf dot net>
* src/lib/libgen.c:
fix segmentation fault in basename() and dirname()
2010-12-18 Vincent Torri <doursse at users dot sf dot net>
* src/lib/Evil.h:

View File

@ -36,7 +36,7 @@ evil_basename(char *path)
return _evil_basename_buf;
}
p2 = p1;
while (p2)
while (*p2)
{
if (*p2 == '/') *p2 = '\\';
p2++;
@ -86,7 +86,7 @@ evil_dirname(char *path)
return _evil_dirname_buf;
}
p2 = p1;
while (p2)
while (*p2)
{
if (*p2 == '/') *p2 = '\\';
p2++;