diff options
| -rw-r--r-- | contrib/csup/rsyncfile.c | 2 | ||||
| -rw-r--r-- | contrib/csup/updater.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/csup/rsyncfile.c b/contrib/csup/rsyncfile.c index f256ccfd0b71..3d5c8a56883e 100644 --- a/contrib/csup/rsyncfile.c +++ b/contrib/csup/rsyncfile.c @@ -140,7 +140,7 @@ rsync_chooseblocksize(size_t fsize) } bestrem = MAXBLOCKSIZE; - for (bs = losearch; bs <= hisearch;) { + for (bs = losearch; bs <= hisearch; bs++) { rem = fsize % bs; if (rem < bestrem) { bestrem = rem; diff --git a/contrib/csup/updater.c b/contrib/csup/updater.c index 8ae043ed85d4..fd67f6124a78 100644 --- a/contrib/csup/updater.c +++ b/contrib/csup/updater.c @@ -2078,7 +2078,7 @@ updater_rsync(struct updater *up, struct file_update *fup, size_t blocksize) if (proto_get_sizet(&line, &blockcount, 10) != 0) goto bad; /* Read blocks from original file. */ - lseek(orig, SEEK_SET, (blocksize * blockstart)); + lseek(orig, (blocksize * blockstart), SEEK_SET); error = UPDATER_ERR_MSG; for (blocknum = 0; blocknum < blockcount; blocknum++) { nbytes = read(orig, buf, blocksize); |
