From e462364e6816ad56185c4511aff7d88c5a0c071a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 18 Feb 2010 21:16:11 +0100 Subject: [PATCH] Use snprintf instead sprintf --- src/util-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-print.c b/src/util-print.c index d1e60c574e..e2e5410589 100644 --- a/src/util-print.c +++ b/src/util-print.c @@ -22,7 +22,7 @@ void PrintRawUriFp(FILE *fp, uint8_t *buf, uint32_t buflen) if (isprint(buf[u])) { bstr_add_mem(uri_buf, (char *)&buf[u], 1); } else { - sprintf(temp, "\\x%02X", buf[u]); + snprintf(temp, sizeof(temp), "\\x%02X", buf[u]); bstr_add_cstr(uri_buf, temp); } }