commit | 3d3347c0625ce29b5581a0aa45e6e3be580769f1 | [log] [tgz] |
---|---|---|
author | Marc Hoersken <info@marc-hoersken.de> | Mon Mar 23 23:17:31 2015 +0100 |
committer | Marc Hoersken <info@marc-hoersken.de> | Mon Mar 23 23:17:31 2015 +0100 |
tree | b16097e6a076dd70c4cb87cc83af4e8c546e489c | |
parent | 2d59b41daa3925645a26e6406fc318e6c2bfaae6 [diff] |
scp.c: improved command length calculation Reduced number of calls to strlen, because shell_quotearg already returns the length of the resulting string (e.q. quoted path) which we can add to the existing and known cmd_len. Removed obsolete call to memset again, because we can put a final NULL-byte at the end of the string using the calculated length.