aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-09-02 00:10:06 +0000
committerRob Landley <rob@landley.net>2005-09-02 00:10:06 +0000
commitbabd3fbba668e04841cbe683ca49097fb871fca8 (patch)
treea19d20f7697fb092da7fe50fba539b5225cf4256 /editors
parent92255d60b840184e9418fa29a077be860bcc767b (diff)
downloadbusybox-babd3fbba668e04841cbe683ca49097fb871fca8.tar.gz
Missing break was screwing up 'y//' command. Bug #248.
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c
index a0a127e2b..166e837da 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1025,6 +1025,7 @@ restart:
for (j = 0; sed_cmd->string[j]; j += 2) {
if (pattern_space[i] == sed_cmd->string[j]) {
pattern_space[i] = sed_cmd->string[j + 1];
+ break;
}
}
}