aboutsummaryrefslogtreecommitdiffstats
path: root/include/dynload.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/dynload.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/dynload.h b/include/dynload.h
index 21e30131e..dfae2f0cd 100644
--- a/include/dynload.h
+++ b/include/dynload.h
@@ -52,9 +52,7 @@ dlsym (void * hd, const char * sym)
static __inline__ const char *
dlerror (void)
{
- static char buf[32];
- sprintf (buf, "ec=%lu\n", GetLastError ());
- return buf;
+ return w32_strerror (0);
}