diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-11 05:51:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-11 05:51:38 +0000 |
commit | 3740805aa5cb05fa7818ff5d4dafe8933ab880dc (patch) | |
tree | 9c46967160ae7853e13e537b0d654217b024430a /report.c | |
parent | ccbdbe086371a9c6b99d2b3b6cce6887804f5b54 (diff) | |
download | fetchmail-3740805aa5cb05fa7818ff5d4dafe8933ab880dc.tar.gz fetchmail-3740805aa5cb05fa7818ff5d4dafe8933ab880dc.tar.bz2 fetchmail-3740805aa5cb05fa7818ff5d4dafe8933ab880dc.zip |
Nate Williams's patches to make this work.
svn path=/trunk/; revision=739
Diffstat (limited to 'report.c')
-rw-r--r-- | report.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -294,7 +294,8 @@ error_build (message, va_alist) partial_message = xrealloc (partial_message, partial_message_size); } #else - sprintf (partial_message + partial_message_size_used, message, a1, a2, a3, a4, a5, a6, a7, a8); + VA_START (args, message); + vsprintf (partial_message + partial_message_size_used, message, args); /* Attempt to catch memory overwrites... */ if ((partial_message_size_used = strlen (partial_message)) >= partial_message_size) @@ -302,6 +303,7 @@ error_build (message, va_alist) partial_message_size_used = 0; error (PS_UNDEFINED, 0, "partial error message buffer overflow"); } + va_end (args); #endif #endif @@ -384,7 +386,8 @@ error_complete (status, errnum, message, va_alist) partial_message = xrealloc (partial_message, partial_message_size); } #else - sprintf (partial_message + partial_message_size_used, message, a1, a2, a3, a4, a5, a6, a7, a8); + VA_START (args, message); + vsprintf (partial_message + partial_message_size_used, message, args); /* Attempt to catch memory overwrites... */ if ((partial_message_size_used = strlen (partial_message)) >= partial_message_size) @@ -392,6 +395,7 @@ error_complete (status, errnum, message, va_alist) partial_message_size_used = 0; error (PS_UNDEFINED, 0, "partial error message buffer overflow"); } + va_end (args); #endif #endif |