]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhficlass.c
coverity scan bug fixes
[proxmark3-svn] / client / cmdhficlass.c
index cd4b4440415cad2baa4e3b3573b97fc044c37a7c..ce7d1f935d9447d8baca20115b1bea327b9c876f 100644 (file)
@@ -1349,7 +1349,7 @@ uint64_t hexarray_to_uint64(uint8_t *key) {
        for (int i = 0;i < 8;i++)
                sprintf(&temp[(i *2)],"%02X",key[i]);
        temp[16] = '\0';
        for (int i = 0;i < 8;i++)
                sprintf(&temp[(i *2)],"%02X",key[i]);
        temp[16] = '\0';
-       if (sscanf(temp,"%016"llx,&uint_key) < 1)
+       if (sscanf(temp,"%016" SCNx64,&uint_key) < 1)
                return 0;
        return uint_key;
 }
                return 0;
        return uint_key;
 }
Impressum, Datenschutz