From 0236f83f751e2aefa4580b1259a182a3cd9aabe1 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 27 Sep 2009 18:19:16 +0800 Subject: [PATCH] Fixed: Used pos-increment instead of pre-increment --- Kernel/vfs/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/vfs/open.c b/Kernel/vfs/open.c index 1b51b85d..be7ebc3d 100644 --- a/Kernel/vfs/open.c +++ b/Kernel/vfs/open.c @@ -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; } } -- 2.20.1