Consistent formatting for sizeof(foo)
[openssl.git] / apps / rand.c
index 05b944287adac59c51657bdeb19b6a79e8589837..0ab22a99c851bf9b73c923487a8a43739534b471 100644 (file)
@@ -102,7 +102,7 @@ int rand_main(int argc, char **argv)
 
         chunk = num;
         if (chunk > (int)sizeof(buf))
-            chunk = sizeof buf;
+            chunk = sizeof(buf);
         r = RAND_bytes(buf, chunk);
         if (r <= 0)
             goto end;