aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-11 05:51:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-11 05:51:38 +0000
commit3740805aa5cb05fa7818ff5d4dafe8933ab880dc (patch)
tree9c46967160ae7853e13e537b0d654217b024430a
parentccbdbe086371a9c6b99d2b3b6cce6887804f5b54 (diff)
downloadfetchmail-3740805aa5cb05fa7818ff5d4dafe8933ab880dc.tar.gz
fetchmail-3740805aa5cb05fa7818ff5d4dafe8933ab880dc.tar.bz2
fetchmail-3740805aa5cb05fa7818ff5d4dafe8933ab880dc.zip
Nate Williams's patches to make this work.
svn path=/trunk/; revision=739
-rw-r--r--report.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/report.c b/report.c
index 0dbfdf6e..0c064e01 100644
--- a/report.c
+++ b/report.c
@@ -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