aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOliver Stöneberg <oliverst@online.de>2013-10-18 14:58:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-10-18 14:58:47 +0200
commitf2c2687ca6c6c7e25c9a547227027ab28eb4fc16 (patch)
treee4d1c95242f9ef8bd0face9a06d5820d7afcad4e /src
parent4c300313c3e04b35b884b3bd33a7cff7a135ff65 (diff)
downloadlibssh-f2c2687ca6c6c7e25c9a547227027ab28eb4fc16.tar.gz
libssh-f2c2687ca6c6c7e25c9a547227027ab28eb4fc16.tar.xz
libssh-f2c2687ca6c6c7e25c9a547227027ab28eb4fc16.zip
scp: Fixed result of ssh_scp_string_mode() to get SCP working.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/scp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scp.c b/src/scp.c
index 6838a3cd..db07aed4 100644
--- a/src/scp.c
+++ b/src/scp.c
@@ -814,7 +814,7 @@ int ssh_scp_integer_mode(const char *mode){
*/
char *ssh_scp_string_mode(int mode){
char buffer[16];
- snprintf(buffer,sizeof(buffer),"%.4o",mode);
+ snprintf(buffer,sizeof(buffer),"%.4d",mode);
return strdup(buffer);
}