Input: fix last line missing

This commit is contained in:
augustin64 2023-11-15 14:57:32 +01:00
parent b87bcd68b0
commit 1cc9868567

View File

@ -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;
} }