summaryrefslogtreecommitdiff
path: root/methods/ftp.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-07-26 22:12:36 +0200
committerMichael Vogt <mvo@debian.org>2013-07-26 22:17:33 +0200
commit11d0fb919954e79f929ef5e755f602a6ed3be46d (patch)
treef8a263e87dc789b766d924777539a5b21b68f878 /methods/ftp.cc
parent36a0c0f78675d10cae840a72268f70aed667fb96 (diff)
fix missing va_end()
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r--methods/ftp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index d55ac1224..979adca62 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -436,6 +436,7 @@ bool FTPConn::WriteMsg(unsigned int &Ret,string &Text,const char *Fmt,...)
char S[400];
vsnprintf(S,sizeof(S) - 4,Fmt,args);
strcat(S,"\r\n");
+ va_end(args);
if (Debug == true)
cerr << "-> '" << QuoteString(S,"") << "'" << endl;