commit: r277 - trunk/stdutil/src

[email protected]
Newsgroups gmane.network.spread.cvs
Message-ID <[email protected]>
Author: jonathan
Date: 2005-09-19 17:26:32 -0400 (Mon, 19 Sep 2005)
New Revision: 277

Modified:
   trunk/stdutil/src/stderror.c
Log:
Apply fix from Neil Conway to change incorrect usage of vsprintf to sprintf.



Modified: trunk/stdutil/src/stderror.c
===================================================================
--- trunk/stdutil/src/stderror.c	2005-09-08 14:56:53 UTC (rev 276)
+++ trunk/stdutil/src/stderror.c	2005-09-19 21:26:32 UTC (rev 277)
@@ -47,7 +47,7 @@
   buf[ret1] = 0;                       /* ensure termination */
 
   if (errno_copy != 0) {
-    ret2             = vsprintf(buf + ret1, ": %s", strerror(errno_copy));  /* write errno msg */
+    ret2             = sprintf(buf + ret1, ": %s", strerror(errno_copy));   /* write errno msg */
     ret2             = STDMAX(ret2, 0);                                     /* zero out any error */
     buf[ret1 + ret2] = 0;                                                   /* ensure termination */
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.