From: Cristy Date: Sat, 6 Jul 2019 13:59:37 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-54~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6abbe0a99d2aa007445ce84456e501d759caf9a;p=imagemagick ... --- diff --git a/MagickCore/log.h b/MagickCore/log.h index 41f710be8..7f2e37854 100644 --- a/MagickCore/log.h +++ b/MagickCore/log.h @@ -45,7 +45,7 @@ typedef enum ExceptionEvent = 0x00100, /* Log Errors and Warnings immediately */ ImageEvent = 0x00200, LocaleEvent = 0x00400, - ModuleEvent = 0x00800, /* Loding of coder and filter modules */ + ModuleEvent = 0x00800, /* Log coder and filter modules */ PixelEvent = 0x01000, PolicyEvent = 0x02000, ResourceEvent = 0x04000, diff --git a/coders/pdf.c b/coders/pdf.c index 3fa74e532..36b04eff2 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -441,11 +441,11 @@ static inline void CheckRemainingPDFBuffer(PDFBuffer *buffer,size_t length) (void) MovePDFBuffer(buffer); } -static inline void SkipPDFBytes(PDFBuffer *buffer,size_t count) +static inline void SkipPDFBytes(PDFBuffer *buffer,size_t length) { - CheckRemainingPDFBuffer(buffer,count); - if ((buffer->offset+count) < buffer->count) - buffer->offset+=count; + CheckRemainingPDFBuffer(buffer,length); + if ((buffer->offset+length) < buffer->count) + buffer->offset+=length; } static inline MagickBooleanType ComparePDFBuffer(const char *p,