git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7b305f
)
get byte order of checksum seed right
author
Andrew Tridgell
<tridge@samba.org>
Sun, 30 Jun 1996 05:02:45 +0000
(
05:02
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 30 Jun 1996 05:02:45 +0000
(
05:02
+0000)
checksum.c
patch
|
blob
|
history
diff --git
a/checksum.c
b/checksum.c
index 8e9ad27fc73a595de968235ec316f175fce481b3..68ce5c998c204fdc6a2dcfddd86719ac7cd7d368 100644
(file)
--- a/
checksum.c
+++ b/
checksum.c
@@
-67,7
+67,7
@@
void get_checksum2(char *buf,int len,char *sum)
if (len > len1) {
if (buf1) free(buf1);
- buf1 = (char *)malloc(len+
sizeof(checksum_seed)
);
+ buf1 = (char *)malloc(len+
4
);
len1 = len;
if (!buf1) out_of_memory("get_checksum2");
}
@@
-76,8
+76,8
@@
void get_checksum2(char *buf,int len,char *sum)
bcopy(buf,buf1,len);
if (checksum_seed) {
-
bcopy((char *)&checksum_seed,buf1+len,sizeof(checksum_seed)
);
- len +=
sizeof(checksum_seed)
;
+
SIVAL(buf1,len,checksum_seed
);
+ len +=
4
;
}
for(i = 0; i + CSUM_CHUNK <= len; i += CSUM_CHUNK) {