Addition to prev. revision #1665

This commit is contained in:
Alexey Milovidov 2018-01-13 08:38:27 +03:00
parent e8385f6778
commit 81187e48b2

View File

@ -201,7 +201,7 @@ void readIntTextUpToNChars(T & x, ReadBuffer & buf)
negative = true;
}
for (size_t i = 0; !buf.eof(); ++i)
for (size_t i = 0; !buf.eof() && i < N; ++i)
{
if ((*buf.position() & 0xF0) == 0x30)
{