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 f905d65 commit 12e01cbCopy full SHA for 12e01cb
src/test/regress/pg_regress.c
@@ -845,7 +845,7 @@ initialize_environment(void)
845
{
846
char s[16];
847
848
- sprintf(s, "%d", port);
+ snprintf(s, sizeof(s), "%d", port);
849
setenv("PGPORT", s, 1);
850
}
851
@@ -867,7 +867,7 @@ initialize_environment(void)
867
868
869
870
871
872
873
if (user != NULL)
0 commit comments