Fixed: Used pos-increment instead of pre-increment
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:19:16 +0000 (18:19 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:19:16 +0000 (18:19 +0800)
Kernel/vfs/open.c

index 1b51b85..be7ebc3 100644 (file)
@@ -101,7 +101,7 @@ char *VFS_GetAbsPath(char *Path)
                                // If there is no higher, silently ignore
                                if(!slashNum)   continue;
                                // Reverse write pointer
-                               write = slashOffsets[ slashNum-- ];
+                               write = slashOffsets[ --slashNum ];
                                continue;
                        }
                }

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