aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 93d3f89d1..44e86e245 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -434,7 +434,7 @@ static char *parse_cmd_args(sed_cmd_t *sed_cmd, char *cmdstr)
434 while(isspace(*cmdstr)) cmdstr++; 434 while(isspace(*cmdstr)) cmdstr++;
435 length = strcspn(cmdstr, semicolon_whitespace); 435 length = strcspn(cmdstr, semicolon_whitespace);
436 if (length) { 436 if (length) {
437 sed_cmd->string = strndup(cmdstr, length); 437 sed_cmd->string = bb_xstrndup(cmdstr, length);
438 cmdstr += length; 438 cmdstr += length;
439 } 439 }
440 } 440 }