mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Add more use of psprintf()
This commit is contained in:
@@ -1649,9 +1649,7 @@ _mdfd_segpath(SMgrRelation reln, ForkNumber forknum, BlockNumber segno)
|
||||
|
||||
if (segno > 0)
|
||||
{
|
||||
/* be sure we have enough space for the '.segno' */
|
||||
fullpath = (char *) palloc(strlen(path) + 12);
|
||||
sprintf(fullpath, "%s.%u", path, segno);
|
||||
fullpath = psprintf("%s.%u", path, segno);
|
||||
pfree(path);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user