summaryrefslogtreecommitdiff
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
parent6cabb6fd6c8bdc1afa0d0e93614fdc512d2c4c25 (diff)
- (bal) Small fix to scp. %lu vs %ld
-rw-r--r--ChangeLog5
-rw-r--r--scp.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e72a739..d7b6ede3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,8 +9,9 @@
- (djm) Make scp work on systems without 64-bit ints
- tim@mindrot.org 2001/03/18 18:28:39 [defines.h]
move HAVE_LONG_LONG_INT where it works
- - Use 'NGROUPS' for NeXT Since 'MAX_NGROUPS' is wrapped up in -lposix
+ - (bal) Use 'NGROUPS' for NeXT Since 'MAX_NGROUPS' is wrapped up in -lposix
stuff. Change suggested by Mark Miller <markm@swoon.net>
+ - (bal) Small fix to scp. %lu vs %ld
20010318
- (bal) Fixed scp type casing issue which causes "scp: protocol error:
@@ -4610,4 +4611,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.977 2001/03/19 03:01:56 mouring Exp $
+$Id: ChangeLog,v 1.978 2001/03/19 03:09:40 mouring Exp $
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) {