Skip to content

Commit

Permalink
Use c_str in snprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
gentzian committed Aug 14, 2024
1 parent 0c3ab74 commit 81c1b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Barcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 81c1b05

Please sign in to comment.