aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tokenizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp
index ebe163b5..e5f131f8 100644
--- a/tokenizer.cpp
+++ b/tokenizer.cpp
@@ -295,7 +295,9 @@ static void read_string(tokenizer *tok)
}
else
{
+ /* Since we are about to increment tok->buff, decrement it first so the increment doesn't go past the end of the buffer. https://github.com/fish-shell/fish-shell/issues/389 */
do_loop = 0;
+ tok->buff--;
}