*/
cin.film.id=ReadBlobByte(image);
offset++;
- if ((unsigned long) cin.film.id != ~0UL)
+ if (((unsigned long) cin.film.id) != ~0UL)
(void) FormatImageProperty(image,"cin:film.id","%d",cin.film.id);
cin.film.type=ReadBlobByte(image);
offset++;
- if ((unsigned long) cin.film.type != ~0UL)
+ if (((unsigned long) cin.film.type) != ~0UL)
(void) FormatImageProperty(image,"cin:film.type","%d",cin.film.type);
cin.film.offset=ReadBlobByte(image);
offset++;
- if ((unsigned long) cin.film.offset != ~0UL)
+ if (((unsigned long) cin.film.offset) != ~0UL)
(void) FormatImageProperty(image,"cin:film.offset","%d",
cin.film.offset);
cin.film.reserve1=ReadBlobByte(image);
(void) CopyMagickString(p,p+1,MaxTextExtent);
continue;
}
- switch (*p)
+ switch ((int) *p)
{
case '%':
{
value=strtod(p,&q);
if (LocaleNCompare(p,"0x",2) == 0)
value=(double) strtol(p,&q,10);
- if (((int) *q == -41) || (*q == 'x') || (*q == 'X') || (*q == '\0'))
+ if ((((int) *q) == -41) || (*q == 'x') || (*q == 'X') || (*q == '\0'))
{
/*
Parse width.
if (p != q)
flags|=WidthValue;
}
- if (((int) *p == -41) || (*p == 'x') || (*p == 'X'))
+ if ((((int) *p) == -41) || (*p == 'x') || (*p == 'X'))
{
p++;
if ((*p != '+') && (*p != '-'))
(void) CopyMagickString(p,p+1,MaxTextExtent);
continue;
}
- switch (*p)
+ switch ((int) *p)
{
case '%':
{
value=strtod(p,&q);
if (LocaleNCompare(p,"0x",2) == 0)
value=(double) strtol(p,&q,10);
- if (((int) *q == -41) || (*q == 'x') || (*q == 'X') || (*q == ',') ||
+ if ((((int) *q) == -41) || (*q == 'x') || (*q == 'X') || (*q == ',') ||
(*q == '/') || (*q == ':') || (*q =='\0'))
{
/*
}
}
q=p;
- if (((int) *p == -41) || (*p == 'x') || (*p == 'X') || (*p == ',') ||
+ if ((((int) *p) == -41) || (*p == 'x') || (*p == 'X') || (*p == ',') ||
(*p == '/') || (*p == ':'))
{
/*
p++;
while (isspace((int) ((unsigned char) *p)) != 0)
p++;
- if ((((int) *q != -41) && (*q != 'x') && (*q != 'X')) ||
+ if (((((int) *q) != -41) && (*q != 'x') && (*q != 'X')) ||
((*p != '+') && (*p != '-')))
{
q=p;
MaxTextExtent);
(void) ConcatenateMagickString(filename,filelist[j],MaxTextExtent);
filelist[j]=DestroyString(filelist[j]);
- if (strlen(filename) >= MaxTextExtent)
+ if (strlen(filename) >= (MaxTextExtent-1))
ThrowFatalException(OptionFatalError,"FilenameTruncated");
if (IsPathDirectory(filename) <= 0)
{