Skip to content

Commit 81c1b05

Browse files
author
gentzian
committed
Use c_str in snprintf
1 parent 0c3ab74 commit 81c1b05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Barcode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Barcode::load_correction_map(string relative_exepath,
243243
size_t min_set_size = set_sizes[0];
244244
if(set_sizes.size() >= 2 && set_sizes[1] == min_set_size){
245245
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!";
246-
message = string_format(message, to_string(min_set_size));
246+
message = string_format(message, to_string(min_set_size).c_str());
247247
throw(runtime_error(message));
248248
}
249249

0 commit comments

Comments
 (0)