Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2021-03-31 21:00:30 +0000
committerTom Lane2021-03-31 21:00:30 +0000
commitf1be740a991406d7885047beb971e1ff5dbe8b71 (patch)
treead5014a0c27149149e033a8fd8c27e431bde569b /src/test/perl/PostgresNode.pm
parent8998e3cafa23632790787b8cc726998e84067259 (diff)
Fix portability and safety issues in pqTraceFormatTimestamp.
Remove confusion between time_t and pg_time_t; neither gettimeofday() nor localtime() deal in the latter. libpq indeed has no business using <pgtime.h> at all. Use snprintf not sprintf, to ensure we can't overrun the supplied buffer. (Unlikely, but let's be safe.) Per buildfarm.
Diffstat (limited to 'src/test/perl/PostgresNode.pm')
0 files changed, 0 insertions, 0 deletions