From 67901996804e4e446c6ba2f36ea3ce26e0080fbb Mon Sep 17 00:00:00 2001 From: Alexander Duryagin Date: Wed, 15 Aug 2018 19:25:54 +0300 Subject: [PATCH] Increase maximum vnc server name length --- java/com/tigervnc/vncviewer/VncViewer.java | 2 +- vncviewer/vncviewer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 93d3f3be..f96e2ec7 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -85,7 +85,7 @@ public class VncViewer extends javax.swing.JApplet private static VncViewer applet; private String defaultServerName; - int VNCSERVERNAMELEN = 64; + int VNCSERVERNAMELEN = 256; CharBuffer vncServerName = CharBuffer.allocate(VNCSERVERNAMELEN); public static void setLookAndFeel() { diff --git a/vncviewer/vncviewer.h b/vncviewer/vncviewer.h index c98c2e94..88aa9332 100644 --- a/vncviewer/vncviewer.h +++ b/vncviewer/vncviewer.h @@ -19,7 +19,7 @@ #ifndef __VNCVIEWER_H__ #define __VNCVIEWER_H__ -#define VNCSERVERNAMELEN 64 +#define VNCSERVERNAMELEN 256 void exit_vncviewer(const char *error = NULL); bool should_exit(); -- 2.39.5