aboutsummaryrefslogtreecommitdiff
path: root/smash/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'smash/env.c')
-rw-r--r--smash/env.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/smash/env.c b/smash/env.c
index 1bf7e21..58285f0 100644
--- a/smash/env.c
+++ b/smash/env.c
@@ -71,6 +71,7 @@ char* new_line_and_replace_vars(const char *line, u64 n)
while (*e) {
replaced[i++] = *(e++);
}
+ --i;
}
} else {