X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-files.c;h=cce6a04b9a0608f47b306e1ab2da87cf073cd0fd;hb=0c6c12370b8f2b467f64e08b96b21b20e7ee15ee;hp=46ea0477b9f1a8df5b4edb40b4c3a00a96cc9232;hpb=2c6fcae14552ab6e7addc82516617a135f86b5ca;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-files.c b/src/wgtpkg-files.c index 46ea047..cce6a04 100644 --- a/src/wgtpkg-files.c +++ b/src/wgtpkg-files.c @@ -1,5 +1,5 @@ /* - Copyright 2015 IoT.bzh + Copyright 2015, 2016, 2017 IoT.bzh author: José Bollo @@ -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;