strlcpy was used here to purposely truncate the string
-emg
From 91e5e371106735f8536109d3867c13dcbfa64082 Mon Sep 17 00:00:00 2001
From: Evan Gates <[email protected]>
Date: Tue, 24 Mar 2015 13:43:04 -0700
Subject: [PATCH] change estrlcat back to strlcat
strlcat is used to here to purposely truncate the string
---
sed.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sed.c b/sed.c
index 04f847f..0c7440e 100644
--- a/sed.c
+++ b/sed.c
@@ -329,7 +329,7 @@ strnacat(String *dst, char *src, size_t n)
resize((void **)&dst->str, &dst->cap, 1, len * 2, NULL);
if (new)
*dst->str = '\0';
- estrlcat(dst->str, src, len);
+ strlcat(dst->str, src, len);
}
void
--
2.3.3