]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1593
authorCristy <urban-warrior@imagemagick.org>
Sun, 16 Jun 2019 17:40:35 +0000 (13:40 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 16 Jun 2019 17:40:35 +0000 (13:40 -0400)
MagickCore/log.c

index e7da076270fc4c08a67f25ff978fc66cc8b0dd07..afa8621222e79b819916430f12da7b50504f800b 100644 (file)
@@ -1100,7 +1100,8 @@ static char *TranslateEvent(const char *module,const char *function,
       }
       case 'i':
       {
-        q += FormatLocaleString(q, extent, "%.20g", (double) GetMagickThreadSignature());
+        q+=FormatLocaleString(q,extent,"%.20g",(double)
+          GetMagickThreadSignature());
         break;
       }
       case 'l':
@@ -1223,6 +1224,11 @@ static char *TranslateFilename(const LogInfo *log_info)
     p++;
     switch (*p)
     {
+      case '\0':
+      {
+        p--;
+        break;
+      }
       case 'c':
       {
         q+=CopyMagickString(q,GetClientName(),extent);