Skip to content

Commit

Permalink
format names are not case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
kaysievers committed Jul 23, 2009
1 parent 58230a7 commit d5b5a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udev/udev-event.c
Expand Up @@ -126,7 +126,7 @@ size_t udev_event_apply_format(struct udev_event *event, const char *src, char *
}

for (i = 0; i < ARRAY_SIZE(map); i++) {
if (strncasecmp(&from[1], map[i].name, strlen(map[i].name)) == 0) {
if (strncmp(&from[1], map[i].name, strlen(map[i].name)) == 0) {
type = map[i].type;
from += strlen(map[i].name)+1;
dbg(event->udev, "will substitute format name '%s'\n", map[i].name);
Expand Down

0 comments on commit d5b5a61

Please sign in to comment.