diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-11-25 04:44:55 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-11-25 04:44:55 +0100 |
commit | e0be30426a18f3c8038f98cdb10171200b134d60 (patch) | |
tree | 6a078ac74ced083794f251a58d9a181a3e504179 /scp.c | |
parent | - (dtucker) [configure.ac] Apply tim's fix for older systems where the (diff) | |
download | openssh-e0be30426a18f3c8038f98cdb10171200b134d60.tar.xz openssh-e0be30426a18f3c8038f98cdb10171200b134d60.zip |
- (dtucker) [progressmeter.c scp.c sftp-server.c] Use correct casts for
snprintf formats, fixes warnings on some 64 bit platforms. Patch from
shaw at vranix.com, ok djm@
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -563,7 +563,7 @@ syserr: run_err("%s: %s", name, strerror(errno)); #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) snprintf(buf, sizeof buf, "C%04o %lld %s\n", (u_int) (stb.st_mode & FILEMODEMASK), - (int64_t)stb.st_size, last); + (long long)stb.st_size, last); if (verbose_mode) { fprintf(stderr, "Sending file modes: %s", buf); } |