Debug
[tpg/acess2.git] / Kernel / vfs / open.c
index 1c00a1f..1b51b85 100644 (file)
@@ -72,7 +72,7 @@ char *VFS_GetAbsPath(char *Path)
                while( (pos = strpos( &ret[read], '/' )) != -1 && slashNum < MAX_PATH_SLASHES )
                {
                        read += pos+1;
-                       slashOffsets[slashNum++] = pos;
+                       slashOffsets[slashNum++] = read;
                }
                        
                baseLen = cwdLen+1;
@@ -109,6 +109,7 @@ 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+1 );
                }
                write = pos+1;

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