X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=process.c;h=63f08046a934041de1181fc4acf0d9fd81e493e1;hb=fcda7a5f4fcfbedb5493bbfc1b37e53c6b3a575c;hp=672bc41c6254da000c2307de8a9f37c21c131166;hpb=732f39656d933c6112a0586bbefcf8288d57bda4;p=strace diff --git a/process.c b/process.c index 672bc41c..63f08046 100644 --- a/process.c +++ b/process.c @@ -1569,7 +1569,7 @@ static void printpriv(struct tcb *tcp, long addr, int len, const struct xlat *opt) { priv_t buf[128]; - int max = verbose(tcp) ? sizeof buf / sizeof buf[0] : 10; + int max = verbose(tcp) ? ARRAY_SIZE(buf) : 10; int dots = len > max; int i;