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 8134a68 commit 56736b1Copy full SHA for 56736b1
src/pg_probackup.h
@@ -531,7 +531,7 @@ typedef struct BackupPageHeader
531
#define IsInXLogSeg(xlrp, logSegNo, wal_segsz_bytes) \
532
XLByteInSeg(xlrp, logSegNo, wal_segsz_bytes)
533
#define GetXLogSegName(fname, logSegNo, wal_segsz_bytes) \
534
- snprintf(fname, MAXFNAMELEN, "%08X%08X", \
+ snprintf(fname, 20, "%08X%08X", \
535
(uint32) ((logSegNo) / XLogSegmentsPerXLogId(wal_segsz_bytes)), \
536
(uint32) ((logSegNo) % XLogSegmentsPerXLogId(wal_segsz_bytes)))
537
@@ -547,7 +547,7 @@ typedef struct BackupPageHeader
547
548
XLByteInSeg(xlrp, logSegNo)
549
550
- snprintf(fname, MAXFNAMELEN, "%08X%08X",\
+ snprintf(fname, 20, "%08X%08X",\
551
(uint32) ((logSegNo) / XLogSegmentsPerXLogId), \
552
(uint32) ((logSegNo) % XLogSegmentsPerXLogId))
553
0 commit comments