Skip to content

Commit

Permalink
Allow for some copy/paste issues in parsing Xorg.log
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
  • Loading branch information
jeremyhu committed Oct 8, 2011
1 parent e55b8eb commit cf95ba5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,14 @@ extract_edid(int fd)

for (c = start; *c; c++) {
if (state == 0) {
char *s;
/* skip ahead to the : */
if (!(c = strstr(c, ": \t")))
s = strstr(c, ": \t");
if (!s)
s = strstr(c, ": ");
if (!s)
break;
c = s;
/* and find the first number */
while (!isxdigit(c[1]))
c++;
Expand Down

0 comments on commit cf95ba5

Please sign in to comment.