From 5e15de67331d148bc236d4464a52ef028def5f4b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 26 Dec 2015 22:02:41 +0000 Subject: [PATCH] filesys: fix dumb bug introduced in previous commit --- Kernel/filesys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/filesys.c b/Kernel/filesys.c index feddbdcd..ba491abf 100644 --- a/Kernel/filesys.c +++ b/Kernel/filesys.c @@ -364,7 +364,7 @@ void filename(char *userspace_upath, char *name) *ptr-- = 0; /* Walk back until we drop off the start of the buffer or find the slash */ - while(*ptr != '/' && ptr-- >= buf); + while(*ptr != '/' && ptr-- > buf); /* And move past the slash, or not the string start */ ptr++; memcpy(name, ptr, FILENAME_LEN); -- 2.34.1