From 81c1b05443fcaae0a18bf1b8595bb4cab420aee9 Mon Sep 17 00:00:00 2001 From: gentzian Date: Wed, 14 Aug 2024 13:29:38 +0200 Subject: [PATCH] Use c_str in snprintf --- src/Barcode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Barcode.cpp b/src/Barcode.cpp index 10a19c1..903d55f 100644 --- a/src/Barcode.cpp +++ b/src/Barcode.cpp @@ -243,7 +243,7 @@ Barcode::load_correction_map(string relative_exepath, size_t min_set_size = set_sizes[0]; if(set_sizes.size() >= 2 && set_sizes[1] == min_set_size){ string message = "Error: found 2 barcode correction map of the same size (%s nt) that contain all given barcodes! Please use more barcodes or make the correction table unique!"; - message = string_format(message, to_string(min_set_size)); + message = string_format(message, to_string(min_set_size).c_str()); throw(runtime_error(message)); }