]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 24 Mar 2015 15:59:17 +0000 (15:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 24 Mar 2015 15:59:17 +0000 (15:59 +0000)
coders/wpg.c

index 19b42eee5277f534357908d14d5023b875248d0e..b563288267ad328e760fe2ecd067eab3516d08d2 100644 (file)
@@ -448,7 +448,6 @@ static void InsertRow(Image *image,unsigned char *p,ssize_t y,int bpp,
 static int UnpackWPGRaster(Image *image,int bpp,ExceptionInfo *exception)
 {
   int
-    c,
     x,
     y,
     i;
@@ -602,7 +601,7 @@ static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception)
         case 0x7F:
           RunCount=ReadBlobByte(image);   /* BLK */
           if (RunCount < 0)
-            brealk;
+            break;
           for(i=0; i < SampleSize*(RunCount+1); i++)
             {
               InsertByte6(0);
@@ -611,7 +610,7 @@ static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception)
         case 0xFD:
           RunCount=ReadBlobByte(image);   /* EXT */
           if (RunCount < 0)
-            brealk;
+            break;
           for(i=0; i<= RunCount;i++)
             for(bbuf=0; bbuf < SampleSize; bbuf++)
               InsertByte6(SampleBuffer[bbuf]);          
@@ -619,7 +618,7 @@ static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception)
         case 0xFE:
           RunCount=ReadBlobByte(image);  /* RST */
           if (RunCount < 0)
-            brealk;
+            break;
           if(x!=0)
             {
               (void) FormatLocaleFile(stderr,
@@ -640,7 +639,7 @@ static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception)
         case 0xFF:
           RunCount=ReadBlobByte(image);   /* WHT */
           if (RunCount < 0)
-            brealk;
+            break;
           for(i=0; i < SampleSize*(RunCount+1); i++)
             {
               InsertByte6(0xFF);