diff options
Diffstat (limited to 'newlib/libc/posix/collate.c')
-rw-r--r-- | newlib/libc/posix/collate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/posix/collate.c b/newlib/libc/posix/collate.c index 8af8970c9..6ee455001 100644 --- a/newlib/libc/posix/collate.c +++ b/newlib/libc/posix/collate.c @@ -177,12 +177,13 @@ __collate_err(int ex, const char *f) { const char *s; int serrno = errno; + int dummy; /* Be careful to change write counts if you change the strings */ write(STDERR_FILENO, "collate_error: ", 15); write(STDERR_FILENO, f, strlen(f)); write(STDERR_FILENO, ": ", 2); - s = strerror(serrno); + s = _strerror_r(_REENT, serrno, 1, &dummy); write(STDERR_FILENO, s, strlen(s)); write(STDERR_FILENO, "\n", 1); exit(ex); |