ext/RMagick/rmutil.c in rmagick-2.13.4 vs ext/RMagick/rmutil.c in rmagick-2.14.0

- old
+ new

@@ -1607,11 +1607,11 @@ * @throw FatalImageMagickError */ void rm_fatal_error_handler(const ExceptionType severity, const char *reason, const char *description) { - rb_raise(Class_FatalImageMagickError, GetLocaleExceptionMessage(severity, reason)); + rb_raise(Class_FatalImageMagickError, "%s", GetLocaleExceptionMessage(severity, reason)); description = description; } /** @@ -1647,10 +1647,10 @@ #endif GetLocaleExceptionMessage(exception->severity, exception->reason), exception->description ? ": " : "", exception->description ? GetLocaleExceptionMessage(exception->severity, exception->description) : ""); msg[sizeof(msg)-1] = '\0'; - rb_warning(msg); + rb_warning("%s", msg); // Caller deletes ExceptionInfo... return; }