Skip to content

Commit

Permalink
Fix remain calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Apr 25, 2019
1 parent 23d99f3 commit 42c4d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ucl_parser.c
Expand Up @@ -1810,8 +1810,8 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
}
if (*p =='\n') {
/* Set chunk positions and start multiline parsing */
chunk->remain -= p - c + 1;
c += 2;
chunk->remain -= p - c;
chunk->pos = p + 1;
chunk->column = 0;
chunk->line ++;
Expand Down

0 comments on commit 42c4d05

Please sign in to comment.