You've already forked pg_probackup
							
							
				mirror of
				https://github.com/postgrespro/pg_probackup.git
				synced 2025-10-31 00:17:52 +02:00 
			
		
		
		
	Fix gcc warning messages
This commit is contained in:
		| @@ -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, ¤t); | ||||
|  | ||||
| 	pgBackupGetPath(¤t, database_path, lengthof(database_path), | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user