From 06af6e15489aa9b4f88783faad8af6a69a76c91e Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 21 Jan 2008 12:57:05 +0000 Subject: [PATCH] Fix the unknown number of args with strzcat. git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@188 bc163920-b10d-0410-b2c5-a5491ca2ceef --- http.c | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/http.c b/http.c index 2c71db3..46bd28b 100644 --- a/http.c +++ b/http.c @@ -110,19 +110,14 @@ void print_line_prefix(char *buf, char *prefix) /* * Append an variable number of strings together */ -size_t strzcat(char *strz, ...) +size_t strzcat(char *strz, char *fmt, ...) { + int offset = strlen(strz); va_list ap; - char *z; - int i; - size_t dlen = 0; - va_start(ap, strz); - for(i=0; i