Using zstrndup instead of strndup)

This commit is contained in:
Omer Katz 2014-05-21 11:18:12 +03:00
parent 18a92867fc
commit e34759c1aa

View file

@ -72,7 +72,7 @@ node * r3_edge_branch(edge *e, int dl) {
// truncate the original edge pattern
char *op = e->pattern;
e->pattern = strndup(e->pattern, dl);
e->pattern = zstrndup(e->pattern, dl);
e->pattern_len = dl;
return new_child;