Commit b6b41172 authored by Bruce Momjian's avatar Bruce Momjian

fix for sizeof pointed out by Ed Buddington

parent 3e248edf
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.33 1997/05/09 03:28:49 scrappy Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.34 1997/05/13 01:46:00 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -720,7 +720,7 @@ startup2PacketBuf(StartupInfo* s, PacketBuf* res) ...@@ -720,7 +720,7 @@ startup2PacketBuf(StartupInfo* s, PacketBuf* res)
tmp += sizeof(s->options); tmp += sizeof(s->options);
strncpy(tmp, s->execFile, sizeof(s->execFile)); strncpy(tmp, s->execFile, sizeof(s->execFile));
tmp += sizeof(s->execFile); tmp += sizeof(s->execFile);
strncpy(tmp, s->tty, sizeof(s->execFile)); strncpy(tmp, s->tty, sizeof(s->tty));
} }
/* ---------------- /* ----------------
......
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