summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bfstd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bfstd.c b/src/bfstd.c
index e9214d4..a4ae439 100644
--- a/src/bfstd.c
+++ b/src/bfstd.c
@@ -301,7 +301,7 @@ const char *xstrerror(int errnum) {
}
if (copy != (locale_t)0) {
- ret = strerror_l(errnum, loc);
+ ret = strerror_l(errnum, copy);
}
if (loc == LC_GLOBAL_LOCALE) {