Input: fix last line missing
This commit is contained in:
parent
b87bcd68b0
commit
1cc9868567
@ -23,6 +23,7 @@ vector<string> get_input() {
|
|||||||
|
|
||||||
int n = buffer.length();
|
int n = buffer.length();
|
||||||
if (n >= 2 && buffer[n-1] == ';' && buffer[n-2] == ';') {
|
if (n >= 2 && buffer[n-1] == ';' && buffer[n-2] == ';') {
|
||||||
|
input.push_back(buffer);
|
||||||
buffer[n-1] = '\0';
|
buffer[n-1] = '\0';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user