diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lexparse.c | 2 | ||||
| -rw-r--r-- | src/preproc.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lexparse.c b/src/lexparse.c index a4105eb..eae5c16 100644 --- a/src/lexparse.c +++ b/src/lexparse.c @@ -115,7 +115,7 @@ static void collect_double_q_section(char* line, Word* result_buf, size_t* pos) push_to_String(&lit_buf, '$'); } } else { - push_to_String(&lit_buf, line[*pos]); + push_to_String(&lit_buf, line[(*pos)++]); } } if (line[(*pos)++] == '\0') exit(46); diff --git a/src/preproc.c b/src/preproc.c index 5669ce4..8865968 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -69,6 +69,7 @@ StrVec process_word(Word word, ShellState* shstate) { Chunk chunk = *get_from_Word(&word, i); process_chunk(chunk, &split_bui, shstate); } + consolidate_split_builder(&split_bui); return split_bui.completed_fields; } |
