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...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user