summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wgtpkg-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wgtpkg-files.c b/src/wgtpkg-files.c
index 503a84b..cce6a04 100644
--- a/src/wgtpkg-files.c
+++ b/src/wgtpkg-files.c
@@ -50,7 +50,7 @@ static unsigned int what_signature(const char *name)
return UINT_MAX;
len = sizeof(distributor_file_prefix)-1;
- if (memcmp(name, distributor_file_prefix, len))
+ if (strncmp(name, distributor_file_prefix, len))
return 0;
if (name[len] <= '0' || name[len] > '9')
return 0;