badwords: catch and fix threading-related words

Also:
- sync newlines between the two threaded examples.

Closes #20001
This commit is contained in:
Viktor Szakats 2025-12-16 20:01:16 +01:00
parent 8dadff9434
commit 61273f5812
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
25 changed files with 45 additions and 38 deletions

View file

@ -161,7 +161,7 @@ static int my_trace(CURL *curl, curl_infotype type,
known_offset = 1;
}
secs = epoch_offset + tv.tv_sec;
now = localtime(&secs); /* not thread safe but we do not care */
now = localtime(&secs); /* not thread-safe but we do not care */
snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06ld",
now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec);