1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

Fix gcc warning messages

This commit is contained in:
Arthur Zakirov 2018-05-16 10:12:16 +03:00
parent d8005d5496
commit 37ced690ad
2 changed files with 3 additions and 2 deletions

View File

@ -547,7 +547,8 @@ do_backup_instance(void)
/* notify start of backup to PostgreSQL server */
time2iso(label, lengthof(label), current.start_time);
strncat(label, " with pg_probackup", lengthof(label));
strncat(label, " with pg_probackup", lengthof(label) -
strlen(" with pg_probackup"));
pg_start_backup(label, smooth_checkpoint, &current);
pgBackupGetPath(&current, database_path, lengthof(database_path),

View File

@ -333,7 +333,7 @@ validate_wal(pgBackup *backup,
*/
if (backup->stream)
{
sprintf(backup_xlog_path, "/%s/%s/%s/%s",
snprintf(backup_xlog_path, sizeof(backup_xlog_path), "/%s/%s/%s/%s",
backup_instance_path, backup_id, DATABASE_DIR, PG_XLOG_DIR);
validate_backup_wal_from_start_to_stop(backup, backup_xlog_path, tli);