]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
use snprintf() instead
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Thu, 18 Jan 2024 20:25:29 +0000 (22:25 +0200)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Thu, 18 Jan 2024 21:40:38 +0000 (23:40 +0200)
src/nfa/limex_dump.cpp

index a22392b34a37088051daf2413c393177f4b1ec19..d9e4921399d4cfc34280490cfdbfb75deae91ba6 100644 (file)
@@ -136,7 +136,7 @@ void dumpLimexReachMasks(u32 model_size, const u8 *reach, u32 reachCount,
     for (u32 i = 0; i < reachCount; i++) {
         char tmp_common[100];
         const u8 *row = reach + (i * (model_size/8));
-        sprintf(tmp_common, "reach mask %u ", i);
+        snprintf(tmp_common, sizeof(tmp_common), "reach mask %u ", i);
         dumpMask(f, tmp_common, row, model_size);
     }
 }