Commit d4b4060d authored by Sébastien Villemot's avatar Sébastien Villemot

Fix build failure with -Werror=format-security

See Debian bug #646258 (http://bugs.debian.org/646258) and
http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags for details.
parent 82d3c76e
......@@ -26,7 +26,7 @@ void SylvException::printMessage() const
char mes[1500];
mes[0] = '\0';
printMessage(mes, 1499);
printf(mes);
puts(mes);
}
int SylvException::printMessage(char* str, int maxlen) const
......
......@@ -113,14 +113,14 @@ InitializeKalmanFilter::setPstar(Matrix &Pstar, Matrix &Pinf, const Matrix &T, c
{
if (e.info > 0) // The matrix is not positive definite in NormCholesky calculator
{
printf(e.message.c_str());
puts(e.message.c_str());
info = -1; //likelihood = penalty;
return;
}
else if (e.info < 0)
{
printf("Caugth unhandled TS exception with Pstar matrix: ");
printf(e.message.c_str());
puts(e.message.c_str());
info = -1; //likelihood = penalty;
throw;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment