You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
774 B

--- netkit-rsh-0.17/rcp/rcp.c.bigfile 2003-01-17 16:06:44.000000000 +0200
+++ netkit-rsh-0.17/rcp/rcp.c 2003-01-17 16:08:48.000000000 +0200
@@ -482,7 +482,7 @@
}
}
(void)snprintf(buf, sizeof(buf),
- "C%04o %ld %s\n", stb.st_mode&07777, stb.st_size, last);
+ "C%04o %lld %s\n", stb.st_mode&07777, (long long)(stb.st_size), last);
(void)write(rem, buf, (int)strlen(buf));
if (response() < 0) {
(void)close(f);
@@ -614,11 +614,11 @@
struct timeval tv[2];
enum { YES, NO, DISPLAYED } wrerr;
BUF *bp;
- off_t i, j;
+ off_t i, j, size;
char ch, *targ;
const char *why;
int amt, count, exists, first, mask, mode;
- int ofd, setimes, size, targisdir;
+ int ofd, setimes, targisdir;
char *np, *vect[1], buf[BUFSIZ];
#define atime tv[0]