mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-24 02:03:06 +00:00
cppcheck really like us to use snprinft....
This commit is contained in:
1 parent
000d086d59
commit
94720a4a6c
1 file changed
+1
-1
@@ -144,7 +144,7 @@ static int mqtt_receive(const char *addr, const char *port, const char *topic, c
|
||||
mqtt_init(&client, sockfd, sendbuf, sizeof(sendbuf), recvbuf, sizeof(recvbuf), mqtt_publish_callback);
|
||||
|
||||
char cid[20] = "pm3_";
|
||||
sprintf(cid + strlen(cid), "%02x%02x%02x%02x"
|
||||
snprintf(cid + strlen(cid), sizeof(cid) - 4, "%02x%02x%02x%02x"
|
||||
, rand() % 0xFF
|
||||
, rand() % 0xFF
|
||||
, rand() % 0xFF
|
||||
|
||||
Reference in new issue
Block a user