From: Alan Cox Date: Sat, 26 Dec 2015 22:02:41 +0000 (+0000) Subject: filesys: fix dumb bug introduced in previous commit X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5e15de67331d148bc236d4464a52ef028def5f4b;p=FUZIX.git filesys: fix dumb bug introduced in previous commit --- 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);