From: Changyeon Lee Date: Fri, 27 Dec 2019 05:31:06 +0000 (+0900) Subject: fix warning stringop-truncation X-Git-Tag: accepted/tizen/unified/20191230.120919~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Flibtbm.git;a=commitdiff_plain;h=c050fec0fdaccd91024fa98762a9d23aeb3c504c fix warning stringop-truncation Change-Id: I73d11ce3ca4904d307d3764f7c26f40f3de2a8f8 --- diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index 51c05a7..50ae206 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -2185,7 +2185,7 @@ static char *_tbm_surface_internal_get_keys(tbm_surface_h surface) memset(temp_key, 0x00, KEY_LEN + 1); bo = surf->bos[i]; snprintf(temp_key, KEY_LEN, "_%d", tbm_bo_export(bo)); - strncat(keys, temp_key, KEY_LEN); + strncat(keys, temp_key, KEY_LEN + 1); } _tbm_surface_mutex_unlock();