1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Rename strNcpy to StrNCpy, and change third parameter.

This commit is contained in:
Bruce Momjian
1997-10-25 01:10:58 +00:00
parent 8b53f6e5b6
commit f3af1368bd
31 changed files with 87 additions and 83 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.49 1997/09/18 20:22:03 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.50 1997/10/25 01:10:16 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1088,7 +1088,7 @@ PostgresMain(int argc, char *argv[])
* o - send output (stdout and stderr) to the given file
* ----------------
*/
strNcpy(OutputFileName, optarg, MAXPGPATH);
StrNCpy(OutputFileName, optarg, MAXPGPATH);
break;
case 'p': /* started by postmaster */
@@ -1391,7 +1391,7 @@ PostgresMain(int argc, char *argv[])
if (IsUnderPostmaster == false)
{
puts("\nPOSTGRES backend interactive interface");
puts("$Revision: 1.49 $ $Date: 1997/09/18 20:22:03 $");
puts("$Revision: 1.50 $ $Date: 1997/10/25 01:10:16 $");
}
/* ----------------

View File

@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO', 'SHOW var' and 'RESET var'
* statements.
*
* $Id: variable.c,v 1.16 1997/09/08 21:47:59 momjian Exp $
* $Id: variable.c,v 1.17 1997/10/25 01:10:22 momjian Exp $
*
*/
@@ -73,7 +73,7 @@ get_token(char **tok, char **val, const char *str)
}
*tok = (char *) PALLOC(len + 1);
strNcpy(*tok, start, len);
StrNCpy(*tok, start, len+1);
/* skip white spaces */
while (isspace(*str))
@@ -119,7 +119,7 @@ get_token(char **tok, char **val, const char *str)
}
*val = (char *) PALLOC(len + 1);
strNcpy(*val, start, len);
StrNCpy(*val, start, len+1);
/* skip white spaces */
while (isspace(*str))