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:
parent
daf31260e3
commit
a03fd6b0a3
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue