From e3dd70ec117a9dca43edc940bf75e64180f62a0b Mon Sep 17 00:00:00 2001 From: merces Date: Wed, 18 Sep 2024 03:48:19 -0300 Subject: [PATCH] Remove call to sprintf() to avoid warnings --- test/tlsh_unittest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/tlsh_unittest.cpp b/test/tlsh_unittest.cpp index 0b08136..dc0b14b 100644 --- a/test/tlsh_unittest.cpp +++ b/test/tlsh_unittest.cpp @@ -152,8 +152,7 @@ int err; char buf1[2000]; char buf2[2000]; - char nullstr[6]; - sprintf(nullstr, "TNULL"); + char nullstr[] = "TNULL"; if (xref) { if (output_json) {