From 9d64b3b498d29d4e2d75998a3edfe949ea84ef5c Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Fri, 27 Nov 2009 09:46:03 +0100 Subject: [PATCH] include --- ttyname.patch | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/ttyname.patch b/ttyname.patch index 12baebb..340f601 100644 --- a/ttyname.patch +++ b/ttyname.patch @@ -1,8 +1,8 @@ --- source/nc.c | 59 ++++++++++++++++++++++++++++++++++++++++---------------- - source/server.c | 32 +++++++++++++++++++++++++++--- - 2 files changed, 72 insertions(+), 19 deletions(-) + source/server.c | 33 ++++++++++++++++++++++++++++--- + 2 files changed, 73 insertions(+), 19 deletions(-) diff --quilt old/source/nc.c new/source/nc.c --- old/source/nc.c @@ -137,7 +137,15 @@ diff --quilt old/source/nc.c new/source/nc.c diff --quilt old/source/server.c new/source/server.c --- old/source/server.c +++ new/source/server.c -@@ -390,6 +390,8 @@ static void processServerCommandString(c +@@ -50,6 +50,7 @@ static const char CVSID[] = "$Id: server + #include + #include + #include ++#include + #ifdef VMS + #include + #include ssdef +@@ -390,6 +391,8 @@ static void processServerCommandString(c WindowInfo *window, *lastFile = NULL; long currentDesktop = QueryCurrentDesktop(TheDisplay, RootWindow(TheDisplay, DefaultScreen(TheDisplay))); @@ -146,7 +154,7 @@ diff --quilt old/source/server.c new/source/server.c /* If the command string is empty, put up an empty, Untitled window (or just pop one up if it already exists) */ -@@ -427,10 +429,11 @@ static void processServerCommandString(c +@@ -427,10 +430,11 @@ static void processServerCommandString(c command both followed by newlines. This bit of code reads the header, and converts the newlines following the filename and do command to nulls to terminate the filename and doCommand strings */ @@ -161,7 +169,7 @@ diff --quilt old/source/server.c new/source/server.c goto readError; inPtr += charsRead + 1; if (fileLen >= 0 && inPtr - string + fileLen > stringLen) -@@ -455,7 +458,30 @@ static void processServerCommandString(c +@@ -455,7 +459,30 @@ static void processServerCommandString(c geometry = inPtr; inPtr += geomLen; *inPtr++ = '\0'; -- 2.11.4.GIT