OSDN Git Service

* dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.
authorcgf <cgf>
Mon, 30 May 2005 18:20:27 +0000 (18:20 +0000)
committercgf <cgf>
Mon, 30 May 2005 18:20:27 +0000 (18:20 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/dlfcn.cc

index b201c39..4e0e507 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-30  Christopher Faylor  <cgf@timesys.com>
+
+       * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.
+
 2005-05-29  Christopher Faylor  <cgf@timesys.com>
 
        * cygmagic: Remove debugging cruft missed on 2005-05-21.
index fc43ed3..23e4aed 100644 (file)
@@ -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;
 }