FreeBSD Bugzilla – Attachment 152947 Details for
Bug 197601
net/omnitty: Allow >32-character hostnames
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to net/omnitty/files/patch-main.c
omnitty-patch (text/plain), 1.25 KB, created by
david
on 2015-02-13 22:11:19 UTC
(
hide
)
Description:
Patch to net/omnitty/files/patch-main.c
Filename:
MIME Type:
Creator:
david
Created:
2015-02-13 22:11:19 UTC
Size:
1.25 KB
patch
obsolete
>Index: files/patch-main.c >=================================================================== >--- files/patch-main.c (revision 378919) >+++ files/patch-main.c (working copy) >@@ -1,5 +1,13 @@ > --- main.c.orig 2005-10-26 06:08:25.000000000 +0800 > +++ main.c 2011-04-22 23:14:33.000000000 +0800 >+@@ -36,6 +36,7 @@ >+ /* minimum terminal dimensions to run program */ >+ #define MIN_REQUIRED_WIDTH 80 >+ #define MIN_REQUIRED_HEIGHT 25 >++#define MAX_HOSTNAME_LENGTH 64 >+ >+ #define REMINDER_LINE "OmNiTTY-R v" OMNITTY_VERSION \ >+ " \007F1\007:menu \006F2/3\007:sel \003F4\007:tag" \ > @@ -88,6 +88,12 @@ > define_key("\e[15~", KEY_F(5)); define_key("\e[17~", KEY_F(6)); > define_key("\e[18~", KEY_F(7)); define_key("\e[19~", KEY_F(8)); >@@ -13,6 +21,19 @@ > > getmaxyx(stdscr, h, w); > if (h < MIN_REQUIRED_HEIGHT || w < MIN_REQUIRED_WIDTH) { >+@@ -288,10 +289,10 @@ >+ } >+ >+ static void add_machine() { >+- static char buf[32]; >++ static char buf[MAX_HOSTNAME_LENGTH]; >+ >+ *buf = 0; >+- if (minibuf_prompt(minibuf, "Add: ", 0xE0, buf, 32)) { >++ if (minibuf_prompt(minibuf, "Add: ", 0xE0, buf, sizeof(buf))) { >+ if (*buf == '@') add_machines_from_file(buf+1); >+ else machmgr_add(buf); >+ } > @@ -335,9 +341,10 @@ > > while (!quit) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197601
: 152947 |
153024