Yesterday was not my day. Forgot about end of string.

Kent
This commit is contained in:
Kent Mein
2008-04-18 14:25:36 +00:00
parent 2318e47ae9
commit 23016d59d4

View File

@@ -193,7 +193,7 @@ struct ImBuf *imb_loadhdr(unsigned char *mem, int size, int flags)
}
}
if (found) {
if (sscanf((char *)&mem[x+1], "%80s %d %80s %d", (char*)&oriY, &height,
if (sscanf((char *)&mem[x+1], "%79s %d %79s %d", (char*)&oriY, &height,
(char*)&oriX, &width) != 4) return NULL;
/* find end of this line, data right behind it */