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 STREQLEN()
[libguestfs.git]
/
daemon
/
file.c
diff --git
a/daemon/file.c
b/daemon/file.c
index
7854ade
..
62de116
100644
(file)
--- a/
daemon/file.c
+++ b/
daemon/file.c
@@
-430,7
+430,7
@@
do_file (const char *path)
char *buf;
int len;
- if (
strncmp (path, "/dev/", 5) == 0
)
+ if (
STREQLEN (path, "/dev/", 5)
)
buf = (char *) path;
else {
buf = sysroot_path (path);