From c92081e116509bab734040f4ccdb9586da7f5c60 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 21 Jul 2014 16:10:03 +0200 Subject: [PATCH] Use printf constructor safely The input string might contain formatting marks, so make sure those are ignored. --- common/rdr/Exception.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rdr/Exception.cxx b/common/rdr/Exception.cxx index d70cd9fc..964bc333 100644 --- a/common/rdr/Exception.cxx +++ b/common/rdr/Exception.cxx @@ -50,7 +50,7 @@ Exception::Exception(const char *format, ...) { } SystemException::SystemException(const char* s, int err_) - : Exception(s), err(err_) + : Exception("%s", s), err(err_) { strncat(str_, ": ", len-1-strlen(str_)); #ifdef _WIN32 -- 2.39.5