Skip to content
Snippets Groups Projects
Commit cffc6be5 authored by Jochen Sprickerhof's avatar Jochen Sprickerhof
Browse files

Fix compilation with -Werror=format-security

parent 70887aec
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ int main() {
LDP ld = ld_alloc_new(50);
JO jo = ld_to_json(ld);
printf(json_object_to_json_string(jo));
printf("%s", json_object_to_json_string(jo));
return 0;
}
......@@ -8,13 +8,13 @@ int main() {
if(!(ld = json_to_ld(jo))) {
fprintf(stderr, "Could not transform to laser_data:\n\n");
fprintf(stderr, "-----\n");
fprintf(stderr, json_object_to_json_string(jo));
fprintf(stderr, "%s", json_object_to_json_string(jo));
fprintf(stderr, "-----\n");
continue;
}
jo = ld_to_json(ld);
printf(json_object_to_json_string(jo));
printf("%s", json_object_to_json_string(jo));
printf("\n");
}
......
......@@ -396,7 +396,7 @@ void options_dump(struct option * options, FILE*f, int write_desc) {
}
void options_print_help(struct option * options, FILE*f) {
fprintf(f, options_banner_string);
fprintf(f, "%s", options_banner_string);
fprintf(f,
"Generic options: \n"
" -help Displays this help.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment