diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-22 20:16:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-22 20:16:55 +0000 |
commit | 0f293b96dc6effa127ec63e11dd16221f1329126 (patch) | |
tree | a5b7873a5ece9bef8355da8d437cf53f952c66ca /libbb/parse_config.c | |
parent | 68a192c00799fd2097bab1aec594cd27203b1ec6 (diff) | |
download | busybox-w32-0f293b96dc6effa127ec63e11dd16221f1329126.tar.gz busybox-w32-0f293b96dc6effa127ec63e11dd16221f1329126.tar.bz2 busybox-w32-0f293b96dc6effa127ec63e11dd16221f1329126.zip |
fix all cases of strcpy on overlapping strings.
Diffstat (limited to 'libbb/parse_config.c')
-rw-r--r-- | libbb/parse_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/parse_config.c b/libbb/parse_config.c index 5109066d8..d1b29218b 100644 --- a/libbb/parse_config.c +++ b/libbb/parse_config.c | |||
@@ -161,7 +161,7 @@ int FAST_FUNC config_read(parser_t *parser, char **tokens, unsigned flags, const | |||
161 | int n = strspn(line, delims); | 161 | int n = strspn(line, delims); |
162 | if (n) { | 162 | if (n) { |
163 | ii -= n; | 163 | ii -= n; |
164 | strcpy(line, line + n); | 164 | overlapping_strcpy(line, line + n); |
165 | } | 165 | } |
166 | // cut trailing | 166 | // cut trailing |
167 | if (ii) { | 167 | if (ii) { |