Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eca0c38

Browse files
committed
Cast some printf arguments to avoid possibly-nonportable behavior.
Per compiler warnings on buildfarm member black_firefly.
1 parent 10b2e74 commit eca0c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ _tarWriteHeader(const char *filename, const char *linktarget,
846846
}
847847

848848
/* Mode 8 */
849-
sprintf(&h[100], "%07o ", statbuf->st_mode);
849+
sprintf(&h[100], "%07o ", (int) statbuf->st_mode);
850850

851851
/* User ID 8 */
852852
sprintf(&h[108], "%07o ", statbuf->st_uid);

0 commit comments

Comments
 (0)