Skip to content

Commit e3b41d4

Browse files
committed
More code cleanups from "Kurt J. Lidl" <lidl@va.pubnix.com>
1 parent df6ca83 commit e3b41d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.6 1996/08/27 06:55:28 scrappy Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.7 1996/09/16 05:40:31 scrappy Exp $
1414
*
1515
* NOTES
1616
*
@@ -590,7 +590,7 @@ ConnStartup(Port *port) /* receiving port */
590590
tmp += sizeof(sp.execFile);
591591
strncpy(sp.tty,tmp, sizeof(sp.tty));
592592

593-
msgType = ntohl(port->buf.msgtype);
593+
msgType = (MsgType) ntohl(port->buf.msgtype);
594594

595595
(void) strncpy(namebuf, sp.user, NAMEDATALEN);
596596
namebuf[NAMEDATALEN] = '\0';
@@ -1011,7 +1011,7 @@ DoExec(StartupInfo *packet, int portFd)
10111011
(void) strncpy(argbuf, packet->options, ARGV_SIZE);
10121012
argbuf[ARGV_SIZE] = '\0';
10131013
(void) strncat(argbuf, ExtraOptions, ARGV_SIZE);
1014-
argbuf[(2 * ARGV_SIZE) + 1] = '\0';
1014+
argbuf[(2 * ARGV_SIZE)] = '\0';
10151015
split_opts(av, &ac, argbuf);
10161016

10171017
if (packet->database[0])

0 commit comments

Comments
 (0)