2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[2369] Fix test, skipping backwards before doing newline check

This commit is contained in:
Mukund Sivaraman
2012-10-29 08:11:06 +05:30
parent 29ff6bebc9
commit 8aa5e22a0f
2 changed files with 4 additions and 2 deletions

View File

@@ -55,10 +55,10 @@ InputSource::ungetChar() {
} else if (buffer_pos_ == 0) {
isc_throw(OutOfRange, "Cannot skip before the start of buffer");
} else {
buffer_pos_--;
if (buffer_[buffer_pos_] == '\n') {
line_--;
}
buffer_pos_--;
}
}