VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: James Bursa <james@zamez.org> 2007-01-05 16:36:28 -0800 committer: Linus Torvalds <torvalds@woody.osdl.org> 2007-01-05 23:55:22 -0800 commit: 3223ea8cca5936b8e78450dd5b8ba88372e9c0a8 parent: 6c5f8cc33eb2e10b6ab788bbe259fc142a068627
Commit Summary:
[PATCH] adfs: fix filename handling
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c
index bbfc86259272..b9b2b27b68c3 100644
--- a/fs/adfs/dir_f.c
+++ b/fs/adfs/dir_f.c
@@ -53,7 +53,7 @@ static inline int adfs_readname(char *buf, char *ptr, int maxlen)
 {
 	char *old_buf = buf;
 
-	while (*ptr >= ' ' && maxlen--) {
+	while ((unsigned char)*ptr >= ' ' && maxlen--) {
 		if (*ptr == '/')
 			*buf++ = '.';
 		else