]> granicus.if.org Git - imagemagick/blobdiff - coders/sfw.c
(no commit message)
[imagemagick] / coders / sfw.c
index cfefefe5588133f8c315f5ae069c88297c17dcb6..2cc8a37d318e9196217c348054e841cb8dc3b100 100644 (file)
@@ -17,7 +17,7 @@
 %                                 July 1992                                   %
 %                                                                             %
 %                                                                             %
-%  Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization      %
+%  Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization      %
 %  dedicated to making software imaging solutions freely available.           %
 %                                                                             %
 %  You may not use this file except in compliance with the License.  You may  %
@@ -129,10 +129,10 @@ static unsigned char *SFWScan(const unsigned char *p,const unsigned char *q,
   if ((p+length) < q)
     while (p < q)
     {
-      for (i=0; i < length; i++)
+      for (i=0; i < (ssize_t) length; i++)
         if (p[i] != target[i])
           break;
-      if (i == length)
+      if (i == (ssize_t) length)
         return((unsigned char *) p);
       p++;
     }