mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-03-29 06:19:53 +00:00
cppcheck really like us to use snprinft....
This commit is contained in:
@@ -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