From: Seungbae Shin Date: Mon, 15 Jul 2024 05:35:00 +0000 (+0900) Subject: fixup! Fix SVACE defects (LIB.INSECURE_STRNCMP) X-Git-Tag: accepted/tizen/unified/20240715.155447~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5761ad8c5f9271dc09ed80a38e598163836f1855;p=platform%2Fcore%2Fmultimedia%2Fpulseaudio-modules-tizen.git fixup! Fix SVACE defects (LIB.INSECURE_STRNCMP) Change-Id: I05eaf449683295fdd16743539f184e99585d090e --- diff --git a/src/vconf/vconf-helper.c b/src/vconf/vconf-helper.c index 6a03a9e..f04af6f 100644 --- a/src/vconf/vconf-helper.c +++ b/src/vconf/vconf-helper.c @@ -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'. */