summaryrefslogtreecommitdiff
path: root/user/tigervnc/initialise-var.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-28 21:34:13 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-28 21:34:13 +0000
commit640609317e6e3d08aa1ac9543b7504839c40751b (patch)
tree000d820d3b8ec584a345b34fd97b0c0df263eda6 /user/tigervnc/initialise-var.patch
parent7ecd99f5c933f43494c286183748a303003a9a68 (diff)
downloadpackages-640609317e6e3d08aa1ac9543b7504839c40751b.tar.gz
packages-640609317e6e3d08aa1ac9543b7504839c40751b.tar.bz2
packages-640609317e6e3d08aa1ac9543b7504839c40751b.tar.xz
packages-640609317e6e3d08aa1ac9543b7504839c40751b.zip
user/tigervnc: Fix build on Intel platforms, use new \0 patch
Diffstat (limited to 'user/tigervnc/initialise-var.patch')
-rw-r--r--user/tigervnc/initialise-var.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/user/tigervnc/initialise-var.patch b/user/tigervnc/initialise-var.patch
new file mode 100644
index 000000000..f58a4dadc
--- /dev/null
+++ b/user/tigervnc/initialise-var.patch
@@ -0,0 +1,24 @@
+From 44cf1d64ecf80c061c0a2b0f0167094e58782102 Mon Sep 17 00:00:00 2001
+From: Pierre Ossman <ossman@cendio.se>
+Date: Mon, 25 Mar 2019 16:14:49 +0100
+Subject: [PATCH] Don't use un-initialized stride to base constructor
+
+We can use a dummy value here as we set up the buffer and stride
+further down in the constructor.
+---
+ vncviewer/PlatformPixelBuffer.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx
+index 1e9803eb2..ff1935e74 100644
+--- a/vncviewer/PlatformPixelBuffer.cxx
++++ b/vncviewer/PlatformPixelBuffer.cxx
+@@ -36,7 +36,7 @@ static rfb::LogWriter vlog("PlatformPixelBuffer");
+ PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) :
+ FullFramePixelBuffer(rfb::PixelFormat(32, 24, false, true,
+ 255, 255, 255, 16, 8, 0),
+- width, height, 0, stride),
++ width, height, NULL, 0),
+ Surface(width, height)
+ #if !defined(WIN32) && !defined(__APPLE__)
+ , shminfo(NULL), xim(NULL)