8000
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 99b225c commit 5dfd506Copy full SHA for 5dfd506
src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
37
*
38
39
* IDENTIFICATION
40
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.405 2004/06/24 21:02:55 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.406 2004/07/10 23:29:16 tgl Exp $
41
42
* NOTES
43
@@ -450,8 +450,9 @@ PostmasterMain(int argc, char *argv[])
450
/*
451
* Other options to pass to the backend on the command line
452
*/
453
- strcat(ExtraOptions, " ");
454
- strcat(ExtraOptions, optarg);
+ snprintf(ExtraOptions + strlen(ExtraOptions),
+ sizeof(ExtraOptions) - strlen(ExtraOptions),
455
+ " %s", optarg);
456
break;
457
case 'p':
458
SetConfigOption("port", optarg, PGC_POSTMASTER, PGC_S_ARGV);
0 commit comments