Skip to content
Snippets Groups Projects
Commit 129b1350 authored by deuce's avatar deuce
Browse files

Fix segfault bug... wasn't checking the return value of strrchr()

parent 98d861ba
No related branches found
No related tags found
No related merge requests found
......@@ -799,6 +799,8 @@ char * DLLCALL _fullpath(char *target, const char *path, size_t size) {
else if(*(out+1)=='.' && *(out+2)=='.' && (*(out+3)=='/' || *(out+3)==0)) {
*out=0;
p=strrchr(target,'/');
if(p==NULL)
p=target;
memmove(p,out+3,strlen(out+3)+1);
out=p;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment