|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: strerror_r.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: strerror_r.c,v 1.7 2007/03/01 16:29:09 bluhm Exp $ */ |
|
|
/* Public Domain <marc@snafu.org> */ |
|
|
/* Public Domain <marc@snafu.org> */ |
|
|
|
|
|
|
|
|
#ifdef NLS |
|
|
#ifdef NLS |
|
@ -83,7 +83,7 @@ __num2string(int num, int sign, int setid, char *buf, size_t buflen, |
|
|
len = strlcpy(buf, catgets(catd, setid, num, list[num]), |
|
|
len = strlcpy(buf, catgets(catd, setid, num, list[num]), |
|
|
buflen); |
|
|
buflen); |
|
|
#else |
|
|
#else |
|
|
len = strlcpy(buf, def, buflen); |
|
|
|
|
|
|
|
|
len = strlcpy(buf, list[num], buflen); |
|
|
#endif |
|
|
#endif |
|
|
if (len >= buflen) |
|
|
if (len >= buflen) |
|
|
ret = ERANGE; |
|
|
ret = ERANGE; |
|
|