Skip to content

Commit

Permalink
Fix the name termination check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jackson committed Oct 27, 2006
1 parent 10c3ed4 commit 2958fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ detailed_block(unsigned char *x)
/* 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);
strncat((char *)name, (char *)x + 5, 13);
if (strchr((char *)name, '\n')) {
name_descriptor_terminated = 1;
printf("Monitor name: %s", name);
Expand Down

0 comments on commit 2958fc0

Please sign in to comment.