projects
/
platform
/
core
/
api
/
screen-mirroring.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
804e100
)
fix checking rule of strncpy
24/74624/1
accepted/tizen/common/20160620.162524
accepted/tizen/ivi/20160617.082501
accepted/tizen/mobile/20160617.082006
accepted/tizen/tv/20160617.082049
submit/tizen/20160616.065630
author
Hyunsoo, Park
<hance.park@samsung.com>
Wed, 15 Jun 2016 02:52:34 +0000
(11:52 +0900)
committer
Hyunsoo, Park
<hance.park@samsung.com>
Wed, 15 Jun 2016 02:52:34 +0000
(11:52 +0900)
Change-Id: Ifefd4ca85446dd87d42eab4add188385f7d7cd29
Signed-off-by: Hyunsoo, Park <hance.park@samsung.com>
src/scmirroring_src_ini.c
patch
|
blob
|
history
diff --git
a/src/scmirroring_src_ini.c
b/src/scmirroring_src_ini.c
index 06ce8a0dc3b225bf5f9b470d1f4774eb0145b7ba..6a587ac1e5132628ca9bc9e8691b0a759c6c48df 100755
(executable)
--- a/
src/scmirroring_src_ini.c
+++ b/
src/scmirroring_src_ini.c
@@
-36,7
+36,7
@@
do { \
if (str) { \
length = strlen(str); \
if ((length > 1) && (length < SCMIRRORING_SRC_INI_MAX_STRLEN)) \
- strncpy(x_item, str,
length +
1); \
+ strncpy(x_item, str,
SCMIRRORING_SRC_INI_MAX_STRLEN -
1); \
else \
strncpy(x_item, x_default, SCMIRRORING_SRC_INI_MAX_STRLEN - 1); \
} \