diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-05 12:56:36 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-05 13:22:57 -0400 |
commit | 428cf9c206beee3407ea3c5480b00f4cfbea95f5 (patch) | |
tree | b5abbb4ad7fc8ee450ea0abfdb7419ca89b8a8ca /src/color.c | |
parent | 634359bb169311646f6369b21f0c90a9819fe2ce (diff) | |
download | bfs-428cf9c206beee3407ea3c5480b00f4cfbea95f5.tar.xz |
bfstd: Add a thread-safe wrapper for strerror()
Diffstat (limited to 'src/color.c')
-rw-r--r-- | src/color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color.c b/src/color.c index 788d35d..fbb5edf 100644 --- a/src/color.c +++ b/src/color.c @@ -1239,7 +1239,7 @@ static int cvbuff(CFILE *cfile, const char *format, va_list args) { break; case 'm': - if (dstrcat(&cfile->buffer, strerror(error)) != 0) { + if (dstrcat(&cfile->buffer, xstrerror(error)) != 0) { return -1; } break; |