diff options
author | Alexander Duryagin <aduryagin@gmail.com> | 2018-08-15 19:25:54 +0300 |
---|---|---|
committer | Alexander Duryagin <aduryagin@gmail.com> | 2018-08-15 19:25:54 +0300 |
commit | 67901996804e4e446c6ba2f36ea3ce26e0080fbb (patch) | |
tree | dba138838552fcf808dbe0afa068ddca99699049 | |
parent | be88293952175258992c1ed2f5a1b7d8f78fe7cc (diff) | |
download | tigervnc-67901996804e4e446c6ba2f36ea3ce26e0080fbb.tar.gz tigervnc-67901996804e4e446c6ba2f36ea3ce26e0080fbb.zip |
Increase maximum vnc server name length
-rw-r--r-- | java/com/tigervnc/vncviewer/VncViewer.java | 2 | ||||
-rw-r--r-- | 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(); |