diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-09 22:24:55 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-09 22:24:55 +0100 |
| commit | 2cc976ac4a65d331fa0f9d00fed28fbc24cb892c (patch) | |
| tree | c37b82b4b36db401e71ac8034cecff7e333b6def | |
| parent | 43d3983e887b9efa10ba6a53626742767297c57d (diff) | |
fix variable zero end bug
| -rw-r--r-- | smash/env.c | 1 |
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 { |