From 6a85e7aaa0022f7da262088dea16c277c96f126e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 1 Apr 2019 14:55:40 +0200 Subject: [PATCH] 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. --- common/rfb/CConnection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx index af84226b..d6960dd2 100644 --- a/common/rfb/CConnection.cxx +++ b/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; -- 2.39.5