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 03767de commit 50d085dCopy full SHA for 50d085d
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