Skip to content

Commit

Permalink
Fix extension decode for raw data files
Browse files Browse the repository at this point in the history
  • Loading branch information
nwnk committed Mar 9, 2009
1 parent 0f5aaa0 commit f017d56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,10 @@ extract_edid(int fd)

/* wait, is this a log file? */
for (i = 0; i < 8; i++) {
if (!isascii(ret[i]))
if (!isascii(ret[i])) {
edid_lines = buf.st_size / 16;
return (unsigned char *)ret;
}
}

/* I think it is, let's go scanning */
Expand Down

0 comments on commit f017d56

Please sign in to comment.