chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
58230a7
)
format names are not case insensitive
author
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 23 Jul 2009 18:28:16 +0000
(20:28 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 23 Jul 2009 18:30:52 +0000
(20:30 +0200)
udev/udev-event.c
patch
|
blob
|
history
diff --git
a/udev/udev-event.c
b/udev/udev-event.c
index 2f32805f30d9b57885a12e847d778248adf72fa4..a407975f08b7bb21aa5e8a20be861c9a72bd36ad 100644
(file)
--- a/
udev/udev-event.c
+++ b/
udev/udev-event.c
@@
-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++) {
}
for (i = 0; i < ARRAY_SIZE(map); i++) {
- if (strnc
asec
mp(&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);
type = map[i].type;
from += strlen(map[i].name)+1;
dbg(event->udev, "will substitute format name '%s'\n", map[i].name);