Bugfixes, bugfixes, bugfixes
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:32:14 +0000 (18:32 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:32:14 +0000 (18:32 +0800)
Kernel/vfs/open.c

index a374614..c178bb6 100644 (file)
@@ -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);

UCC git Repository :: git.ucc.asn.au