From: Alexander Duryagin Date: Wed, 15 Aug 2018 16:25:54 +0000 (+0300) Subject: Increase maximum vnc server name length X-Git-Tag: v1.9.90~97^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=67901996804e4e446c6ba2f36ea3ce26e0080fbb;p=tigervnc.git Increase maximum vnc server name length --- 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();