Author: Mike O'Connor <stew@vireo.org>
Subject: fix buffer overflows

--- a/gnuserv.c
+++ b/gnuserv.c
@@ -138,7 +138,7 @@ void
 ipc_init (struct msgbuf **msgpp)
 {
   key_t key;			/* messge key */
-  char buf[GSERV_BUFSZ];	/* pathname for key */
+  char buf[GSERV_BUFSZ+1];	/* pathname for key */
 
   sprintf (buf,"%s/gsrv%d",tmpdir,(int)geteuid ());
   creat (buf,0600);
@@ -175,7 +175,7 @@ void
 handle_ipc_request (struct msgbuf *msgp)
 {
   struct msqid_ds msg_st;	/* message status */
-  char buf[GSERV_BUFSZ];
+  char buf[GSERV_BUFSZ+1];
   int len;			/* length of message / read */
   int s, result_len;            /* tag fields on the response from emacs */
   int offset = 0;
