summaryrefslogtreecommitdiffhomepage
path: root/editors/sed.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-03-09 22:21:20 +0000
committerRob Landley <rob@landley.net>2006-03-09 22:21:20 +0000
commit1f305dc0fdb8415c9c1321e49cc194089e58c456 (patch)
treea176d02a50d900a5dc610266d920c5efc65c3e1e /editors/sed.c
parent3a324754f88b913091eca8970c686f2e998028a9 (diff)
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/sed.c')
-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)
while(isspace(*cmdstr)) cmdstr++;
length = strcspn(cmdstr, semicolon_whitespace);
if (length) {
- sed_cmd->string = strndup(cmdstr, length);
+ sed_cmd->string = bb_xstrndup(cmdstr, length);
cmdstr += length;
}
}