8000 From: "Kurt J. Lidl" <lidl@va.pubnix.com> · s-monk/postgres@cae8b90 · GitHub
[go: up one dir, main page]

Skip to content

Commit cae8b90

Browse files
committed
From: "Kurt J. Lidl" <lidl@va.pubnix.com>
To: pg95-dev@ki.net Subject: [PG95-DEV] array overrun in postmaster.c
1 parent de635e1 commit cae8b90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 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.3.2.1 1996/08/26 20:35:29 scrappy Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.3.2.2 1996/10/02 21:36:32 scrappy Exp $
1414
*
1515
* NOTES
1616
*
@@ -1004,7 +1004,7 @@ DoExec(StartupInfo *packet, int portFd)
10041004
(void) strncpy(argbuf, packet->options, ARGV_SIZE);
10051005
argbuf[ARGV_SIZE] = '\0';
10061006
(void) strncat(argbuf, ExtraOptions, ARGV_SIZE);
1007-
argbuf[(2 * ARGV_SIZE) + 1] = '\0';
1007+
argbuf[(2 * ARGV_SIZE)] = '\0';
10081008
split_opts(av, &ac, argbuf);
10091009

10101010
if (packet->database[0])

0 commit comments

Comments
 (0)
0