]> granicus.if.org Git - strace/blobdiff - process.c
Introduce ARRAY_SIZE() macro
[strace] / process.c
index 672bc41c6254da000c2307de8a9f37c21c131166..63f08046a934041de1181fc4acf0d9fd81e493e1 100644 (file)
--- 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;