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 673a17e commit 8f0fd47Copy full SHA for 8f0fd47
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