Make static buffer thread local

This commit is contained in:
Florian Festi 2015-11-13 17:28:03 +01:00
parent 1af568ac88
commit 86e0c17f11
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ static int parseFormat(headerSprintfArgs hsa, char * str,
if (findTag(hsa, token, start)) {
/* Use static buffer as hsa->errmsg is const char * */
static char errmsg[1024];
static __thread char errmsg[1024];
snprintf(errmsg, 1024, _("unknown tag: \"%s\""), start);
hsa->errmsg = (const char *)(&errmsg);
goto errxit;