Cast some printf arguments to avoid possibly-nonportable behavior.

Per compiler warnings on buildfarm member black_firefly.
REL9_1_STABLE
Tom Lane 14 years ago
parent 10b2e7404f
commit eca0c389f1
  1. 2
      src/backend/replication/basebackup.c

@ -846,7 +846,7 @@ _tarWriteHeader(const char *filename, const char *linktarget,
}
/* Mode 8 */
sprintf(&h[100], "%07o ", statbuf->st_mode);
sprintf(&h[100], "%07o ", (int) statbuf->st_mode);
/* User ID 8 */
sprintf(&h[108], "%07o ", statbuf->st_uid);

Loading…
Cancel
Save