Using zstrndup instead of strndup)
This commit is contained in:
parent
18a92867fc
commit
e34759c1aa
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ node * r3_edge_branch(edge *e, int dl) {
|
||||||
|
|
||||||
// truncate the original edge pattern
|
// truncate the original edge pattern
|
||||||
char *op = e->pattern;
|
char *op = e->pattern;
|
||||||
e->pattern = strndup(e->pattern, dl);
|
e->pattern = zstrndup(e->pattern, dl);
|
||||||
e->pattern_len = dl;
|
e->pattern_len = dl;
|
||||||
|
|
||||||
return new_child;
|
return new_child;
|
||||||
|
|
Loading…
Reference in a new issue