This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/22871 )
Change subject: gprs_ns2_vty: use strcmp() instead of strncmp()
......................................................................
gprs_ns2_vty: use strcmp() instead of strncmp()
Otherwise substring wouldn't be detected.
E.g. local vs local2
Change-Id: I183b5176a1d8a295b7551ad186b3565adeb3d5e7
---
M src/gb/gprs_ns2_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/71/22871/1
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index a5e282e..53e5572 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -102,7 +102,7 @@
{
struct vty_bind *vbind;
llist_for_each_entry(vbind, &binds, list) {
- if (!strncmp(vbind->name, name, strlen(vbind->name)))
+ if (!strcmp(vbind->name, name))
return vbind;
}
return NULL;
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/22871
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I183b5176a1d8a295b7551ad186b3565adeb3d5e7
Gerrit-Change-Number: 22871
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210212/58ab6974/attachment.htm>