Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
convert strncpy to memcpy
[gitweb.git]
/
fast-import.c
diff --git
a/fast-import.c
b/fast-import.c
index cf6d8bc0ce430b5c6a05fd26e2abd9d473e8c832..4d01efcb9d1e41062d76e88a4f928ceb50f79ca8 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-703,7
+703,7
@@
static struct atom_str *to_atom(const char *s, unsigned short len)
c = pool_alloc(sizeof(struct atom_str) + len + 1);
c->str_len = len;
-
strn
cpy(c->str_dat, s, len);
+
mem
cpy(c->str_dat, s, len);
c->str_dat[len] = 0;
c->next_atom = atom_table[hc];
atom_table[hc] = c;