Add format checks for printf-style functions

Added format checks to functions that expect printf style arguments and
fixed any broken calls to these functions.
This commit is contained in:
Markus Mäkelä
2017-09-11 10:38:46 +03:00
parent b5202a99f4
commit 730072e2ef
5 changed files with 19 additions and 4 deletions

View File

@ -509,7 +509,7 @@ MODULECMD_ARG* modulecmd_arg_parse(const MODULECMD *cmd, int argc, const void **
if (!process_argument(cmd, &cmd->arg_types[i], argv[i], &arg->argv[i], &err))
{
error = true;
modulecmd_set_error("Argument %d, %s: %s", i + 1, err, argv[i] ? argv[i] : "No argument given");
modulecmd_set_error("Argument %d, %s: %s", i + 1, err, argv[i] ? (char*)argv[i] : "No argument given");
break;
}
}