aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libfsimage')
-rw-r--r--tools/libfsimage/xfs/fsys_xfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/libfsimage/xfs/fsys_xfs.c b/tools/libfsimage/xfs/fsys_xfs.c
index 6366d16d0d..0261a5284a 100644
--- a/tools/libfsimage/xfs/fsys_xfs.c
+++ b/tools/libfsimage/xfs/fsys_xfs.c
@@ -571,7 +571,7 @@ xfs_dir (fsi_file_t *ffi, char *dirname)
continue;
}
- if (!*dirname || isspace (*dirname)) {
+ if (!*dirname || isspace ((uint8_t)*dirname)) {
if ((di_mode & IFMT) != IFREG) {
errnum = ERR_BAD_FILETYPE;
return 0;
@@ -588,7 +588,8 @@ xfs_dir (fsi_file_t *ffi, char *dirname)
for (; *dirname == '/'; dirname++);
- for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++);
+ for (rest = dirname; (ch = *rest)
+ && !isspace ((uint8_t)ch) && ch != '/'; rest++);
*rest = 0;
name = first_dentry (ffi, &new_ino);