diff options
author | midipix <writeonce@midipix.org> | 2024-02-03 18:43:10 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-03 19:12:52 +0000 |
commit | 54813ce3470c19ce82145c960bb38e77de03d327 (patch) | |
tree | 23bd8f64d95204d39bab7177db18c87d7d3b6042 /src/arbits | |
parent | ddfc229f8751741daf1ffd53478b094246d19b5d (diff) | |
download | slibtool-54813ce3470c19ce82145c960bb38e77de03d327.tar.bz2 slibtool-54813ce3470c19ce82145c960bb38e77de03d327.tar.xz |
slbt_ar_output_members_posix() format string: use PRIu64 rather than %z.
Diffstat (limited to 'src/arbits')
-rw-r--r-- | src/arbits/output/slbt_ar_output_members.c | 12 |
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++) { |