projects
/
platform
/
core
/
system
/
storaged.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e523b
)
Fix 'stringop-truncation' build warning
68/238368/1
accepted/tizen/unified/20200721.042529
submit/tizen/20200713.072716
submit/tizen/20200720.022936
author
Yunmi Ha
<yunmi.ha@samsung.com>
Mon, 13 Jul 2020 05:51:17 +0000
(14:51 +0900)
committer
Yunmi Ha
<yunmi.ha@samsung.com>
Mon, 13 Jul 2020 05:51:17 +0000
(14:51 +0900)
Change-Id: I2e7767af096d854e5d7964744d92ae41b1a56070
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/shared/config-parser.c
patch
|
blob
|
history
diff --git
a/src/shared/config-parser.c
b/src/shared/config-parser.c
index
3525a85
..
0cfd9fd
100644
(file)
--- a/
src/shared/config-parser.c
+++ b/
src/shared/config-parser.c
@@
-85,7
+85,7
@@
int config_parse(const char *file_name, int cb(struct parse_result *result,
}
*end = '\0';
- strncpy(section, start + 1, sizeof(section));
+ strncpy(section, start + 1, sizeof(section)
-1
);
section[MAX_SECTION-1] = '\0';
} else if (*start) {
/* parse name & value */