fixup! Fix SVACE defects (LIB.INSECURE_STRNCMP) 36/314536/2
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 15 Jul 2024 05:35:00 +0000 (14:35 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 15 Jul 2024 05:35:57 +0000 (14:35 +0900)
Change-Id: I05eaf449683295fdd16743539f184e99585d090e

src/vconf/vconf-helper.c

index 6a03a9e036f3540ae76fa6078b9a1b103e7083be..f04af6f8c69e50bd96297fdb0f1703cee05b3686 100644 (file)
@@ -46,7 +46,7 @@ static void vconf_callback(keynode_t *key, void *data) {
 
     idx = vitem->prefix;
 
-    if (pa_safe_streq(vconf_keynode_get_name(key), vconf_prefix[idx])) {
+    if (!strncmp(vconf_keynode_get_name(key), vconf_prefix[idx], strlen(vconf_prefix[idx]) + 1)) {
         snprintf(buf, sizeof(buf), "%c%s", vitem->opcode, vconf_keynode_get_name(key));
         fprintf(stdout, "%s%c", buf, 0);  /* Send opcode + key + '\0'. */