tests/menu.c:129:36: error: '%s' directive output may be truncated writing up to 99 bytes into a region of size 55 [-Werror=format-truncation=]
Change-Id: I4b7bf9e9a4f14c53d8a22bb3557cc2c33e0f0517
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
memset(title_buf, 0, 256);
if (item->title) {
- snprintf(title_buf, MAX_TITLE, "%s", item->title);
+ snprintf(title_buf, sizeof(title_buf), "%s", item->title);
if (strlen(item->title) >= MAX_TITLE) {
title_buf[MAX_TITLE - 2] = '.';