Commit e3b41d40 authored by Marc G. Fournier's avatar Marc G. Fournier

More code cleanups from "Kurt J. Lidl" <lidl@va.pubnix.com>

parent df6ca83a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* *
...@@ -590,7 +590,7 @@ ConnStartup(Port *port) /* receiving port */ ...@@ -590,7 +590,7 @@ ConnStartup(Port *port) /* receiving port */
tmp += sizeof(sp.execFile); tmp += sizeof(sp.execFile);
strncpy(sp.tty,tmp, sizeof(sp.tty)); strncpy(sp.tty,tmp, sizeof(sp.tty));
msgType = ntohl(port->buf.msgtype); msgType = (MsgType) ntohl(port->buf.msgtype);
(void) strncpy(namebuf, sp.user, NAMEDATALEN); (void) strncpy(namebuf, sp.user, NAMEDATALEN);
namebuf[NAMEDATALEN] = '\0'; namebuf[NAMEDATALEN] = '\0';
...@@ -1011,7 +1011,7 @@ DoExec(StartupInfo *packet, int portFd) ...@@ -1011,7 +1011,7 @@ DoExec(StartupInfo *packet, int portFd)
(void) strncpy(argbuf, packet->options, ARGV_SIZE); (void) strncpy(argbuf, packet->options, ARGV_SIZE);
argbuf[ARGV_SIZE] = '\0'; argbuf[ARGV_SIZE] = '\0';
(void) strncat(argbuf, ExtraOptions, ARGV_SIZE); (void) strncat(argbuf, ExtraOptions, ARGV_SIZE);
argbuf[(2 * ARGV_SIZE) + 1] = '\0'; argbuf[(2 * ARGV_SIZE)] = '\0';
split_opts(av, &ac, argbuf); split_opts(av, &ac, argbuf);
if (packet->database[0]) if (packet->database[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment