diff options
author | Rob Landley <rob@landley.net> | 2006-03-09 22:21:20 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-09 22:21:20 +0000 |
commit | 1f305dc0fdb8415c9c1321e49cc194089e58c456 (patch) | |
tree | a176d02a50d900a5dc610266d920c5efc65c3e1e /editors | |
parent | 3a324754f88b913091eca8970c686f2e998028a9 (diff) | |
download | busybox-w32-1f305dc0fdb8415c9c1321e49cc194089e58c456.tar.gz busybox-w32-1f305dc0fdb8415c9c1321e49cc194089e58c456.tar.bz2 busybox-w32-1f305dc0fdb8415c9c1321e49cc194089e58c456.zip |
Portability patch from rfelker. The bb_asprintf.c thing needs an eventual
follow up in platform.h to set the #ifdef, but the workaround works for
everybody, so...
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 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 | } |