summaryrefslogtreecommitdiff
path: root/methods/rsh.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/rsh.cc
parent36a0c0f78675d10cae840a72268f70aed667fb96 (diff)
fix missing va_end()
Diffstat (limited to 'methods/rsh.cc')
-rw-r--r--methods/rsh.cc2
1 files changed, 2 insertions, 0 deletions
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