From ec6d0f72592a77601f632890d79921b5ca5d90f6 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 26 Mar 2017 15:03:24 +0200 Subject: [PATCH] Fix a compiler warning --- libvncclient/vncviewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index afd84fd..fb25023 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -145,7 +145,7 @@ static void FillRectangle(rfbClient* client, int x, int y, int w, int h, uint32_ } } -static void CopyRectangle(rfbClient* client, uint8_t* buffer, int x, int y, int w, int h) { +static void CopyRectangle(rfbClient* client, const uint8_t* buffer, int x, int y, int w, int h) { int j; if (client->frameBuffer == NULL) {