From e3b41d40fae87d1e47c6157d42a588627c2dbfb0 Mon Sep 17 00:00:00 2001
From: "Marc G. Fournier" <scrappy@hub.org>
Date: Mon, 16 Sep 1996 05:40:31 +0000
Subject: [PATCH] More code cleanups from "Kurt J. Lidl" <lidl@va.pubnix.com>

---
 src/backend/postmaster/postmaster.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 8e50f04182a..2160db0f36e 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.6 1996/08/27 06:55:28 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.7 1996/09/16 05:40:31 scrappy Exp $
  *
  * NOTES
  *
@@ -590,7 +590,7 @@ ConnStartup(Port *port)		/* receiving port */
     tmp += sizeof(sp.execFile);
     strncpy(sp.tty,tmp, sizeof(sp.tty));
 
-    msgType = ntohl(port->buf.msgtype);
+    msgType = (MsgType) ntohl(port->buf.msgtype);
 
     (void) strncpy(namebuf, sp.user, NAMEDATALEN);
     namebuf[NAMEDATALEN] = '\0';
@@ -1011,7 +1011,7 @@ DoExec(StartupInfo *packet, int portFd)
     (void) strncpy(argbuf, packet->options, ARGV_SIZE);
     argbuf[ARGV_SIZE] = '\0';
     (void) strncat(argbuf, ExtraOptions, ARGV_SIZE);
-    argbuf[(2 * ARGV_SIZE) + 1] = '\0';
+    argbuf[(2 * ARGV_SIZE)] = '\0';
     split_opts(av, &ac, argbuf);
     
     if (packet->database[0])
-- 
GitLab