From 1f305dc0fdb8415c9c1321e49cc194089e58c456 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 9 Mar 2006 22:21:20 +0000 Subject: 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... --- 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 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; } } -- cgit v1.2.3