convert strncpy to memcpy
[gitweb.git] / fast-import.c
index cf6d8bc0ce430b5c6a05fd26e2abd9d473e8c832..4d01efcb9d1e41062d76e88a4f928ceb50f79ca8 100644 (file)
@@ -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;
-       strncpy(c->str_dat, s, len);
+       memcpy(c->str_dat, s, len);
        c->str_dat[len] = 0;
        c->next_atom = atom_table[hc];
        atom_table[hc] = c;