diff options
author | Michael Vogt <mvo@debian.org> | 2013-07-26 22:12:36 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-07-26 22:17:33 +0200 |
commit | 11d0fb919954e79f929ef5e755f602a6ed3be46d (patch) | |
tree | f8a263e87dc789b766d924777539a5b21b68f878 /methods | |
parent | 36a0c0f78675d10cae840a72268f70aed667fb96 (diff) |
fix missing va_end()
Diffstat (limited to 'methods')
-rw-r--r-- | methods/ftp.cc | 1 | ||||
-rw-r--r-- | methods/rsh.cc | 2 |
2 files changed, 3 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; diff --git a/methods/rsh.cc b/methods/rsh.cc index fb3782314..d76dca6ef 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -218,6 +218,8 @@ bool RSHConn::WriteMsg(std::string &Text,bool Sync,const char *Fmt,...) // sprintf the description char S[512]; vsnprintf(S,sizeof(S) - 4,Fmt,args); + va_end(args); + if (Sync == true) strcat(S," 2> /dev/null || echo\n"); else |