projects
/
platform
/
adaptation
/
libtbm-shm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac346b
)
use the strncpy and the strncat
40/192040/1
author
SooChan Lim
<sc1.lim@samsung.com>
Mon, 29 Oct 2018 06:53:20 +0000
(15:53 +0900)
committer
SooChan Lim
<sc1.lim@samsung.com>
Mon, 29 Oct 2018 06:53:20 +0000
(15:53 +0900)
Change-Id: I449126b9195eb26915a589fa1852dbcee0c7bb54
src/tbm_bufmgr_shm.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr_shm.c
b/src/tbm_bufmgr_shm.c
index
8d4cfb0
..
3315b68
100644
(file)
--- a/
src/tbm_bufmgr_shm.c
+++ b/
src/tbm_bufmgr_shm.c
@@
-262,8
+262,8
@@
_shm_create_anonymous_file(off_t size)
if (!name)
return -1;
- str
cpy(name, path
);
- str
cat(name, template
);
+ str
ncpy(name, path, strlen(path)
);
+ str
ncat(name, template, sizeof(template)
);
fd = _shm_create_tmpfile_cloexec(name);