[Spread-cvs] commit: r277 - trunk/stdutil/src
jonathan at spread.org
jonathan at spread.org
Mon Sep 19 17:26:32 EDT 2005
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 */
}
More information about the Spread-cvs
mailing list