Signed-off-by: Frediano Ziglio <fzig...@redhat.com>
---
 src/spice-streaming-agent.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index 973192b..11769ff 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -289,7 +289,8 @@ static void usage(const char *progname)
 
 static void send_cursor(const XFixesCursorImage &image)
 {
-    if (image.width >= 1024 || image.height >= 1024)
+    if (image.width >= STREAM_MSG_CURSOR_SET_MAX_WIDTH ||
+        image.height >= STREAM_MSG_CURSOR_SET_MAX_HEIGHT)
         return;
 
     size_t cursor_size =
-- 
2.13.6

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to