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

index e7f692c..0013dee 100644 (file)
@@ -100,9 +100,9 @@ char *VFS_GetAbsPath(char *Path)
                // Only copy if the positions differ
                if(read != write) {
                        Log("write = %i, read = %i", write, read);
-                       memcpy( &ret[write], &ret[read], pos-read );
+                       memcpy( &ret[write], &ret[read], pos-read+1 );
                }
-               write += (pos-read);
+               write += (pos-read)+1;
                
                if(slashNum < MAX_PATH_SLASHES)
                        slashOffsets[ slashNum++ ] = write;

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