diff -r 5603534c62f9 tools/libfsimage/zfs/fsys_zfs.c --- a/tools/libfsimage/zfs/fsys_zfs.c Tue Jun 03 09:41:19 2008 +0100 +++ b/tools/libfsimage/zfs/fsys_zfs.c Tue Jun 03 17:25:17 2008 +0200 @@ -776,11 +776,11 @@ dnode_get_path(fsi_file_t *ffi, dnode_ph while (*path == '/') path++; - while (*path && !isspace(*path)) { + while (*path && !isspace((uint8_t)*path)) { /* get the next component name */ cname = path; - while (*path && !isspace(*path) && *path != '/') + while (*path && !isspace((uint8_t)*path) && *path != '/') path++; ch = *path; *path = 0; /* ensure null termination */ @@ -890,17 +890,17 @@ get_objset_mdn(fsi_file_t *ffi, dnode_ph } /* take out the pool name */ - while (*fsname && !isspace(*fsname) && *fsname != '/') + while (*fsname && !isspace((uint8_t)*fsname) && *fsname != '/') fsname++; - while (*fsname && !isspace(*fsname)) { + while (*fsname && !isspace((uint8_t)*fsname)) { uint64_t childobj; while (*fsname == '/') fsname++; cname = fsname; - while (*fsname && !isspace(*fsname) && *fsname != '/') + while (*fsname && !isspace((uint8_t)*fsname) && *fsname != '/') fsname++; ch = *fsname; *fsname = 0;