Skip to content

Commit

Permalink
Make format a string literal
Browse files Browse the repository at this point in the history
Fixes #166
  • Loading branch information
vassilevsky committed Feb 10, 2015
1 parent 8ba4702 commit e808858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/RMagick/rmutil.c
Expand Up @@ -1609,7 +1609,7 @@ rm_error_handler(const ExceptionType severity, const char *reason, const char *d
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;
}

Expand Down Expand Up @@ -1649,7 +1649,7 @@ handle_exception(ExceptionInfo *exception, Image *imglist, ErrorRetention retent
exception->description ? ": " : "",
exception->description ? GetLocaleExceptionMessage(exception->severity, exception->description) : "");
msg[sizeof(msg)-1] = '\0';
rb_warning(msg);
rb_warning("%s", msg);

// Caller deletes ExceptionInfo...

Expand Down

0 comments on commit e808858

Please sign in to comment.