commit | a7bf3371213a4c6a199f238afaaefb51dbe65ea7 | [log] [tgz] |
---|---|---|
author | Pavol Vican <xvican01@stud.fit.vutbr.cz> | Thu Dec 01 15:58:18 2016 +0100 |
committer | Pavol Vican <xvican01@stud.fit.vutbr.cz> | Thu Dec 01 15:58:18 2016 +0100 |
tree | db436c5c118ef729b3915bcd9c93d6fd2591a16a | |
parent | 87a86ac1278f194ef3d0de777e1c2a1d27f9e07a [diff] [blame] |
parser yang BUGFIX double shift index in reading string
diff --git a/src/parser_yang.c b/src/parser_yang.c index ec5f345..ecb32f2 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -2821,7 +2821,9 @@ if (k >= indent) { for (j = k - indent; j > 0; --j) { output[*out_index] = ' '; - ++(*out_index); + if (j > 1) { + ++(*out_index); + } } break; }