public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d5877
)
filesys: fix dumb bug introduced in previous commit
author
Alan Cox
<alan@linux.intel.com>
Sat, 26 Dec 2015 22:02:41 +0000
(22:02 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 26 Dec 2015 22:02:41 +0000
(22:02 +0000)
Kernel/filesys.c
patch
|
blob
|
history
diff --git
a/Kernel/filesys.c
b/Kernel/filesys.c
index
feddbdc
..
ba491ab
100644
(file)
--- 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);