diff options
| author | bwarsaw | 2000-11-09 06:18:02 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-11-09 06:18:02 +0000 |
| commit | 7c912c530807f02141ca63b5973ac16e2ebe5865 (patch) | |
| tree | 382faf982f9fb96a7b667be569f86fe4433a941c /src | |
| parent | e1e244b4bfcd793536594574447f740d6f742677 (diff) | |
| download | mailman-7c912c530807f02141ca63b5973ac16e2ebe5865.tar.gz mailman-7c912c530807f02141ca63b5973ac16e2ebe5865.tar.zst mailman-7c912c530807f02141ca63b5973ac16e2ebe5865.zip | |
Noam Zeilberger correctly notices that the prototype for vsnprintf()
is incorrect. This closes SF bug #121185
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.c | 2 | ||||
| -rw-r--r-- | src/vsnprintf.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/common.c b/src/common.c index d2fe01ee9..5b0f7207f 100644 --- a/src/common.c +++ b/src/common.c @@ -62,7 +62,7 @@ fatal(const char* ident, int exitcode, char* format, ...) { #ifndef HAVE_VSNPRINTF /* a replacement is provided in vsnprintf.c */ - int vsnprintf(char* s, int n, char* fmt, ...); + int vsnprintf(char*, int, char*, va_list); #endif /* !HAVE_VSNPRINTF */ char log_entry[BUFSIZE]; diff --git a/src/vsnprintf.c b/src/vsnprintf.c index 637ccc38c..877d156f7 100644 --- a/src/vsnprintf.c +++ b/src/vsnprintf.c @@ -43,16 +43,13 @@ #include <strings.h> #include <stdarg.h> -int vsnprintf(char* s, int n, char* fmt, ...) +int vsnprintf(char* s, int n, char* fmt, va_list stack) { char *f, *sf = 0; int i, on, argl = 0; char myf[10], buf[20]; char *arg, *myfp; - va_list stack; - va_start(stack, fmt); - on = n; f = fmt; arg = 0; |
