From 0f293b96dc6effa127ec63e11dd16221f1329126 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 22 Jul 2008 20:16:55 +0000 Subject: fix all cases of strcpy on overlapping strings. --- editors/sed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/sed.c') diff --git a/editors/sed.c b/editors/sed.c index 496d3d2..eb31f7d 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1219,7 +1219,7 @@ static void add_cmd_block(char *cmdstr) slashes++; /* Odd number of preceding slashes - newline is escaped */ if (slashes & 1) { - strcpy(eol-1, eol); + overlapping_strcpy(eol - 1, eol); eol = strchr(eol, '\n'); goto next; } -- cgit v1.1