Skip to content

Commit

Permalink
Comment about string validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jackson committed Oct 27, 2006
1 parent ad1cb61 commit 40f89aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ detailed_block(unsigned char *x)
printf("Color point\n");
return 1;
case 0xFC:
/* XXX should check for spaces after the \n */
has_name_descriptor = 1;
if (strchr((char *)name, '\n')) return 1;
strncat((char *)name, (char *)x + 5, 12);
Expand Down

0 comments on commit 40f89aa

Please sign in to comment.