projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add check when sources.list changed
[apt.git]
/
methods
/
rsh.cc
diff --git
a/methods/rsh.cc
b/methods/rsh.cc
index fb3782314d2152bd4e2378fda6178b04581b2d9b..d76dca6ef35b4be6cca7943865a0e5c142f4e65d 100644
(file)
--- 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