We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e248ed commit b6b4117Copy full SHA for b6b4117
src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $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 $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -720,7 +720,7 @@ startup2PacketBuf(StartupInfo* s, PacketBuf* res)
720
tmp += sizeof(s->options);
721
strncpy(tmp, s->execFile, sizeof(s->execFile));
722
tmp += sizeof(s->execFile);
723
- strncpy(tmp, s->tty, sizeof(s->execFile));
+ strncpy(tmp, s->tty, sizeof(s->tty));
724
}
725
726
/* ----------------
0 commit comments