From ac5e21b028491e4ed03aa606113c97cea27a0b53 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 30 May 2005 18:20:28 +0000 Subject: * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error. --- winsup/cygwin/dlfcn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/dlfcn.cc') diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc index fc43ed38f..23e4aed05 100644 --- a/winsup/cygwin/dlfcn.cc +++ b/winsup/cygwin/dlfcn.cc @@ -27,7 +27,7 @@ details. */ static void __stdcall set_dl_error (const char *str) { - __small_sprintf (_my_tls.locals.dl_buffer, "%s, %E", str); + strcpy (_my_tls.locals.dl_buffer, strerror (get_errno ())); _my_tls.locals.dl_error = 1; } -- cgit v1.2.3