mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-14 03:03:14 +08:00
replaced with threadsafe strtok_r call
This commit is contained in:
parent
85b4463000
commit
a27348c592
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ void PrintAndLogEx(logLevel_t level, const char *fmt, ...) {
|
|||
if (buffer[0] == '\n')
|
||||
PrintAndLog("");
|
||||
|
||||
token = strtok(buffer, delim);
|
||||
token = strtok_r(buffer, delim);
|
||||
|
||||
while (token != NULL) {
|
||||
|
||||
|
@ -109,7 +109,7 @@ void PrintAndLogEx(logLevel_t level, const char *fmt, ...) {
|
|||
else
|
||||
snprintf(buffer2 + size, sizeof(buffer2) - size, "\n");
|
||||
|
||||
token = strtok(NULL, delim);
|
||||
token = strtok_r(NULL, delim);
|
||||
}
|
||||
PrintAndLog("%s", buffer2);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue