From patchwork Sun Nov 4 22:19:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [11/12] lib: fwts_log_html: use strncat instead of strcat Date: Sun, 04 Nov 2012 12:19:49 -0000 From: Colin King X-Patchwork-Id: 197108 Message-Id: <1352067590-11820-12-git-send-email-colin.king@canonical.com> To: fwts-devel@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King --- src/lib/src/fwts_log_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c index c6d941a..009873f 100644 --- a/src/lib/src/fwts_log_html.c +++ b/src/lib/src/fwts_log_html.c @@ -222,7 +222,7 @@ static char *fwts_log_html_convert_ascii_str(const char *buffer) /* Step 2, convert */ for (str1 = buffer; *str1; str1++) { char *str = fwts_log_html_convert_ascii(*str1); - strcat(converted, str); + strncat(converted, str, len + 1); } return converted;