return(0);
if (c == (int) '#')
PNMComment(image,exception);
- } while (isdigit(c) == MagickFalse);
+ } while ((c == ' ') || (c == '\t') || (c == '\n') || (c == '\r'));
if (base == 2)
return((unsigned int) (c-(int) '0'));
/*
break;
value+=c-(int) '0';
c=ReadBlobByte(image);
+ if (c == EOF)
+ return(0);
} while (isdigit(c) != 0);
return(value);
}
c=ReadBlobByte(image);
if (c == EOF)
return(0);
- } while (hex_digits[c] < 0);
+ } while ((c == ' ') || (c == '\t') || (c == '\n') || (c == '\r'));
/*
Evaluate number.
*/
break;
value+=hex_digits[c];
c=ReadBlobByte(image);
+ if (c == EOF)
+ return(0);
} while (hex_digits[c] >= 0);
return(value);
}