[uClibc] strerror not thread safe (not re enterant)
Philip Rakity
prakity at yahoo.com
Fri Jan 7 02:05:12 UTC 2005
strerror is not thread safe since it uses a static
buffer.
uClibc/libc/string/wstring.c
Shouldn't the static be removed in the code below ?
char *strerror(int errnum)
{
static char buf[_STRERROR_BUFSIZE];
_susv3_strerror_r(errnum, buf, sizeof(buf));
return buf;
}
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
More information about the uClibc
mailing list