Fixed use of `pos` instead of `read` in first slash positions
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:14:35 +0000 (18:14 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:14:35 +0000 (18:14 +0800)
Kernel/vfs/open.c

index 1c00a1f..43bf3d5 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;

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