index b0af751c92ed1727a2d201c20e004f6e59ac8626..b35e87295e3a9958b07a05136b9f00dddb3ef034 100644 (file)
{
char s[16];
- sprintf(s, "%d", port);
+ snprintf(s, sizeof(s), "%d", port);
setenv("PGPORT", s, 1);
}
}
{
char s[16];
- sprintf(s, "%d", port);
+ snprintf(s, sizeof(s), "%d", port);
setenv("PGPORT", s, 1);
}
if (user != NULL)