The gcc-13 blame that the size of strndup() could exceed the source
size 64. Fix it to be confined to the source size.
Change-Id: I4eb3ce030ad5ed949d0175f7ea00229cc1419f82
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
sscanf(vconfvalue, "%lf", &ieu->cv.d);
} else if (!strncasecmp(vconftype, "string", sizeof("string"))) {
ieu->cv.type = VCONF_TYPE_STRING;
- ieu->cv.s = strndup(vconfvalue, 128);
+ ieu->cv.s = strndup(vconfvalue, sizeof(vconfvalue));
} else {
_E("Invalid condition vconf type");
return;