From ffab25b0f41da7f50d2b97bd4d3c901d25ad6244 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Thu, 8 Nov 2012 19:34:42 +0100 Subject: [PATCH] Fix strerror redirecting to wrong function. --- libc/include/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/string.h b/libc/include/string.h index 40173bf0..518f11ca 100644 --- a/libc/include/string.h +++ b/libc/include/string.h @@ -80,7 +80,7 @@ char* strchrnul(const char* str, int c); const char* sortix_strerror(int errnum); #endif #if defined(_SOURCE_SOURCE) && __SORTIX_STDLIB_REDIRECTS -const char* strerror(int errnum) asm ("sortix_getenv"); +const char* strerror(int errnum) asm ("sortix_strerror"); #else char* strerror(int errnum); #endif