projects
/
platform
/
core
/
uifw
/
libtbm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix warning stringop-truncation
[platform/core/uifw/libtbm.git]
/
src
/
tbm_surface_internal.c
diff --git
a/src/tbm_surface_internal.c
b/src/tbm_surface_internal.c
index
51c05a7
..
50ae206
100644
(file)
--- 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();