From: John Hodge Date: Sun, 27 Sep 2009 10:32:14 +0000 (+0800) Subject: Bugfixes, bugfixes, bugfixes X-Git-Tag: rel0.06~419 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=40e784647227b4e2a8466ad11310b0065cfe810e;p=tpg%2Facess2.git Bugfixes, bugfixes, bugfixes --- diff --git a/Kernel/vfs/open.c b/Kernel/vfs/open.c index a3746147..c178bb6d 100644 --- a/Kernel/vfs/open.c +++ b/Kernel/vfs/open.c @@ -102,9 +102,10 @@ char *VFS_GetAbsPath(char *Path) Log("write = %i, read = %i", write, read); memcpy( &ret[write], &ret[read], pos-read ); } - write = pos+1; + write += (pos-read)+1; + if(slashNum < MAX_PATH_SLASHES) - slashOffsets[ slashNum++ ] = pos; + slashOffsets[ slashNum++ ] = write; else { LOG("Path '%s' has too many elements", Path); free(ret);