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 /editors | |
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 'editors')
-rw-r--r-- | editors/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 496d3d22e..eb31f7d2e 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -1219,7 +1219,7 @@ static void add_cmd_block(char *cmdstr) | |||
1219 | slashes++; | 1219 | slashes++; |
1220 | /* Odd number of preceding slashes - newline is escaped */ | 1220 | /* Odd number of preceding slashes - newline is escaped */ |
1221 | if (slashes & 1) { | 1221 | if (slashes & 1) { |
1222 | strcpy(eol-1, eol); | 1222 | overlapping_strcpy(eol - 1, eol); |
1223 | eol = strchr(eol, '\n'); | 1223 | eol = strchr(eol, '\n'); |
1224 | goto next; | 1224 | goto next; |
1225 | } | 1225 | } |