gprs_ns2_vty: use strcmp() instead of strncmp()
Otherwise substring wouldn't be detected.
E.g. local vs local2
Change-Id: I183b5176a1d8a295b7551ad186b3565adeb3d5e7
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 55f88b1..0a0a5d3 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;