X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/cddbc86debef12020fd367588ffbc9947a83da60..62f6ecbf2f204d95e98fc5480c5a0db43b52d2be:/methods/ftp.cc 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;