Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-07-05 23:00:47 +0400
committerMatt Kraai <kraai@debian.org>2001-07-05 23:00:47 +0400
commit5009f90ea24224638af6945552012ce60efb3cea (patch)
tree3a1c4ca9a5a873f39efe93d88528315c2f339090 /sed.c
parent44edeff025d0c282fd71dade3d20e237e58ca4bc (diff)
Removed obsolete function, strdup_substr.
Diffstat (limited to 'sed.c')
-rw-r--r--sed.c4
1 files changed, 2 insertions, 2 deletions
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]) {