projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rename: compare_string_array -> index_in_str_array
[oweals/busybox.git]
/
networking
/
libiproute
/
utils.c
diff --git
a/networking/libiproute/utils.c
b/networking/libiproute/utils.c
index 552f4bf77494feb77a82d75c19d48d2c64eb173d..f92179c40e03b6430eb7420d2fbbf7083e422ef0 100644
(file)
--- a/
networking/libiproute/utils.c
+++ b/
networking/libiproute/utils.c
@@
-263,10
+263,7
@@
int matches(char *cmd, char *pattern)
{
int len = strlen(cmd);
- if (len > strlen(pattern)) {
- return -1;
- }
- return memcmp(pattern, cmd, len);
+ return strncmp(pattern, cmd, len);
}
int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits)