X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sameacls.c;h=557b27d8fb879cada97a7274729c1ec93b7926ec;hb=e7754b0;hp=23a777e02c6117890b3f15fd832f3e708266dfe7;hpb=bf7690a6dc4d459c3a1315ba23ea521d64ab9afa;p=gnulib.git diff --git a/tests/test-sameacls.c b/tests/test-sameacls.c index 23a777e02..557b27d8f 100644 --- a/tests/test-sameacls.c +++ b/tests/test-sameacls.c @@ -430,11 +430,13 @@ main (int argc, char *argv[]) size_t aclsize1 = sizeof (acl1); mode_t mode1; char text1[1000]; + size_t textsize1 = sizeof (text1); acl_type_t type2; char acl2[1000]; size_t aclsize2 = sizeof (acl2); mode_t mode2; char text2[1000]; + size_t textsize2 = sizeof (text2); /* The docs say that type1 being 0 is equivalent to ACL_ANY, but it is not true, in AIX 5.3. */ @@ -445,7 +447,7 @@ main (int argc, char *argv[]) fflush (stderr); abort (); } - if (aclx_printStr (text1, sizeof (text1), acl1, aclsize1, type1, file1, 0) < 0) + if (aclx_printStr (text1, &textsize1, acl1, aclsize1, type1, file1, 0) < 0) { fprintf (stderr, "cannot convert the ACLs of file %s to text\n", file1); fflush (stderr); @@ -461,7 +463,7 @@ main (int argc, char *argv[]) fflush (stderr); abort (); } - if (aclx_printStr (text2, sizeof (text2), acl2, aclsize2, type2, file2, 0) < 0) + if (aclx_printStr (text2, &textsize2, acl2, aclsize2, type2, file2, 0) < 0) { fprintf (stderr, "cannot convert the ACLs of file %s to text\n", file2); fflush (stderr);