change estrlcat back to strlcat
strlcat is used to here to purposely truncate the string
This commit is contained in:
parent
8db1632409
commit
b7886f3e67
2
sed.c
2
sed.c
|
@ -329,7 +329,7 @@ strnacat(String *dst, char *src, size_t n)
|
||||||
resize((void **)&dst->str, &dst->cap, 1, len * 2, NULL);
|
resize((void **)&dst->str, &dst->cap, 1, len * 2, NULL);
|
||||||
if (new)
|
if (new)
|
||||||
*dst->str = '\0';
|
*dst->str = '\0';
|
||||||
estrlcat(dst->str, src, len);
|
strlcat(dst->str, src, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user