char mbBuffer[MB_CUR_MAX];
/* Copy the comment */
- if ( ByteCount>8 && !memcmp(szValuePtr, "UNICODE\0", 8) || !memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) {
+ if ( ((ByteCount>8) && !memcmp(szValuePtr, "UNICODE\0", 8)) || !memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) {
/* treat JIS encoding as if it where UNICODE */
szValuePtr = szValuePtr+8;
ByteCount -= 8;
static void ProcessExifDir(ImageInfoType *ImageInfo, char *DirStart, char *OffsetBase, unsigned ExifLength, char *LastExifRefd, int ReadThumbnail)
{
int de;
- int a,l;
+ int l;
int NumDirEntries;
int NextDirOffset;