Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Got rid of inet_ntoa -> rep_inet_ntoa tom-foolery because rsync
[rsync/rsync.git]
/
fileio.c
diff --git
a/fileio.c
b/fileio.c
index
1806209
..
bef7603
100644
(file)
--- a/
fileio.c
+++ b/
fileio.c
@@
-232,7
+232,6
@@
char *map_ptr(struct map_struct *map, OFF_T offset, int32 len)
}
map->p_fd_offset = read_start;
}
}
map->p_fd_offset = read_start;
}
- map->p_fd_offset += read_size;
map->p_offset = window_start;
map->p_len = window_size;
map->p_offset = window_start;
map->p_len = window_size;
@@
-246,6
+245,7
@@
char *map_ptr(struct map_struct *map, OFF_T offset, int32 len)
memset(map->p + read_offset, 0, read_size);
break;
}
memset(map->p + read_offset, 0, read_size);
break;
}
+ map->p_fd_offset += nread;
read_offset += nread;
read_size -= nread;
}
read_offset += nread;
read_size -= nread;
}