git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
change strncmp(...) != 0 to STRNEQLEN(...)
[libguestfs.git]
/
daemon
/
guestfsd.c
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
d16826f
..
61a6236
100644
(file)
--- a/
daemon/guestfsd.c
+++ b/
daemon/guestfsd.c
@@
-945,7
+945,7
@@
device_name_translation (char *device, const char *func)
}
/* If the name begins with "/dev/sd" then try the alternatives. */
- if (
strncmp (device, "/dev/sd", 7) != 0
)
+ if (
STRNEQLEN (device, "/dev/sd", 7)
)
goto error;
device[5] = 'h'; /* /dev/hd (old IDE driver) */