summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-19 03:09:40 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-19 03:09:40 +0000
commit8feff4542e7ed50ca698e8f24490d140c655d6c3 (patch)
tree4a0252e17d4849517265189a4a9b0cba5ffc3891 /scp.c
parent6cabb6fd6c8bdc1afa0d0e93614fdc512d2c4c25 (diff)
- (bal) Small fix to scp. %lu vs %ld
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index decb8e98..ae24fe2e 100644
--- a/scp.c
+++ b/scp.c
@@ -551,9 +551,9 @@ syserr: run_err("%s: %s", name, strerror(errno));
(long long) stb.st_size, last);
#else
/* XXX: Handle integer overflow? */
- snprintf(buf, sizeof buf, "C%04o %ld %s\n",
+ snprintf(buf, sizeof buf, "C%04o %lu %s\n",
(u_int) (stb.st_mode & FILEMODEMASK),
- (long) stb.st_size, last);
+ (u_long) stb.st_size, last);
#endif
if (verbose_mode) {