소스 검색

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…
취소
저장