1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a mistake in InputStream::readNextLine()

This commit is contained in:
jules 2017-10-17 09:30:57 +01:00 committed by hogliux
parent daf31260e3
commit a03fd6b0a3

View file

@ -180,7 +180,6 @@ String InputStream::readNextLine()
for (;;)
{
auto c = readByte();
buffer.writeByte (c);
if (c == 0 || c == '\n')
break;
@ -194,6 +193,8 @@ String InputStream::readNextLine()
break;
}
buffer.writeByte (c);
}
return buffer.toUTF8();