summaryrefslogtreecommitdiffhomepage
path: root/src/arbits/output/slbt_ar_output_members.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-03 18:43:10 +0000
committermidipix <writeonce@midipix.org>2024-02-03 19:12:52 +0000
commit54813ce3470c19ce82145c960bb38e77de03d327 (patch)
tree23bd8f64d95204d39bab7177db18c87d7d3b6042 /src/arbits/output/slbt_ar_output_members.c
parentddfc229f8751741daf1ffd53478b094246d19b5d (diff)
downloadslibtool-54813ce3470c19ce82145c960bb38e77de03d327.tar.bz2
slibtool-54813ce3470c19ce82145c960bb38e77de03d327.tar.xz
slbt_ar_output_members_posix() format string: use PRIu64 rather than %z.
Diffstat (limited to 'src/arbits/output/slbt_ar_output_members.c')
-rw-r--r--src/arbits/output/slbt_ar_output_members.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/arbits/output/slbt_ar_output_members.c b/src/arbits/output/slbt_ar_output_members.c
index f566656..43652a7 100644
--- a/src/arbits/output/slbt_ar_output_members.c
+++ b/src/arbits/output/slbt_ar_output_members.c
@@ -121,7 +121,17 @@ static int slbt_ar_output_members_posix(
gidlen = slbt_ar_output_decimal_len_from_val(gidlen,1);
arloc = newlocale(LC_ALL,setlocale(LC_ALL,0),0);
- sprintf(fmtstr,"%%s%%s%%s %%%zuu/%%-%zuu %%%zuu %%s %%s\n",uidlen,gidlen,sizelen);
+ sprintf(
+ fmtstr,
+ "%%s%%s%%s "
+ "%%" PPRIU64 "u"
+ "/%%-" PPRIU64 "u "
+ "%%" PPRIU64 "u "
+ "%%s "
+ "%%s\n",
+ uidlen,
+ gidlen,
+ sizelen);
}
for (memberp=meta->a_memberv; *memberp; memberp++) {