Navigation Menu

Skip to content

Commit

Permalink
firmware/lm32: Fix bad search/replace.
Browse files Browse the repository at this point in the history
```
 CC       edid.o
edid.c: In function ‘get_monitor_name’:
edid.c:131:19: warning: multi-character character constant [-Wmultichar]
  c = strchr(name, '\r\n');
                   ^
```

Was broken in 102c226
  • Loading branch information
mithro committed Jan 27, 2016
1 parent 82eb3ec commit 0d019b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/lm32/edid.c
Expand Up @@ -128,7 +128,7 @@ void get_monitor_name(const void *buf, char *name)

name[MAX_MONITOR_NAME_LEN] = 0;
memcpy(name, &data_block[5], MAX_MONITOR_NAME_LEN);
c = strchr(name, '\r\n');
c = strchr(name, '\n');
if(c)
*c = 0;
}
Expand Down

0 comments on commit 0d019b4

Please sign in to comment.