From 9efd582dc713b90a69682538ec34579a2bd38afb Mon Sep 17 00:00:00 2001 From: kraai Date: Thu, 5 Jul 2001 19:00:47 +0000 Subject: Removed obsolete function, strdup_substr. git-svn-id: svn://busybox.net/trunk/busybox@3010 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- sed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sed.c') diff --git a/sed.c b/sed.c index 89b16682f..24b62e5fa 100644 --- a/sed.c +++ b/sed.c @@ -223,7 +223,7 @@ static int parse_subst_cmd(struct sed_cmd *sed_cmd, const char *substr) idx = index_of_next_unescaped_regexp_delim(sed_cmd, substr, ++idx); if (idx == -1) error_msg_and_die("bad format in substitution expression"); - match = strdup_substr(substr, oldidx, idx); + match = xstrndup(substr + oldidx, idx - oldidx); /* determine the number of back references in the match string */ /* Note: we compute this here rather than in the do_subst_command() @@ -242,7 +242,7 @@ static int parse_subst_cmd(struct sed_cmd *sed_cmd, const char *substr) idx = index_of_next_unescaped_regexp_delim(sed_cmd, substr, ++idx); if (idx == -1) error_msg_and_die("bad format in substitution expression"); - sed_cmd->replace = strdup_substr(substr, oldidx, idx); + sed_cmd->replace = xstrndup(substr + oldidx, idx - oldidx); /* process the flags */ while (substr[++idx]) { -- cgit v1.2.3-55-g6feb