Printf format checking added to logging function.
Printf format checking added to logging function and all issues that were revealed by that fixed.
This commit is contained in:
@ -124,11 +124,11 @@ int main(int argc, char** argv)
|
||||
memset(message + block_size - 1, '\0', 1);
|
||||
if (interval > 0 && i % interval == 0)
|
||||
{
|
||||
err = skygw_log_write_flush(LOGFILE_ERROR, message);
|
||||
err = skygw_log_write_flush(LOGFILE_ERROR, "%s", message);
|
||||
}
|
||||
else
|
||||
{
|
||||
err = skygw_log_write(LOGFILE_ERROR, message);
|
||||
err = skygw_log_write(LOGFILE_ERROR, "%s", message);
|
||||
}
|
||||
if (err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user