Преглед на файлове

Increase version string buffer size for gcc

There is some bug in gcc's new -Werror=format-overflow that makes it
think majorVersion could end up being very large. Increase the target
buffer for now to keep gcc happy.
tags/v1.9.90
Pierre Ossman преди 5 години
родител
ревизия
6a85e7aaa0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      common/rfb/CConnection.cxx

+ 1
- 1
common/rfb/CConnection.cxx Целия файл

@@ -143,7 +143,7 @@ void CConnection::processMsg()

void CConnection::processVersionMsg()
{
char verStr[13];
char verStr[27]; // FIXME: gcc has some bug in format-overflow
int majorVersion;
int minorVersion;


Loading…
Отказ
Запис