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
Removed hardlink reporting bug from TODO list -- seems to be
[rsync/rsync.git]
/
match.c
diff --git
a/match.c
b/match.c
index
926aad6
..
ba56978
100644
(file)
--- a/
match.c
+++ b/
match.c
@@
-62,9
+62,9
@@
static void build_hash_table(struct sum_struct *s)
int i;
if (!tag_table)
int i;
if (!tag_table)
- tag_table =
(int *)malloc(sizeof(tag_table[0])*
TABLESIZE);
+ tag_table =
new_array(int,
TABLESIZE);
- targets =
(struct target *)malloc(sizeof(targets[0])*
s->count);
+ targets =
new_array(struct target,
s->count);
if (!tag_table || !targets)
out_of_memory("build_hash_table");
if (!tag_table || !targets)
out_of_memory("build_hash_table");