opensc-explorer: re-factor do_random()

* use braces after sizeof, i.e. sizeof(X) instead of sizeof X
This commit is contained in:
Peter Marschall 2020-02-08 19:12:21 +01:00 committed by Frank Morgner
parent b9d4f0c7d8
commit 9b0983e96d
1 changed files with 3 additions and 3 deletions

View File

@ -1711,11 +1711,11 @@ static int do_random(int argc, char **argv)
if (argc < 1 || argc > 2)
return usage(do_random);
count = atoi(argv[0]);
if (count < 0 || (size_t) count > sizeof buffer) {
if (count < 0 || (size_t) count > sizeof(buffer)) {
fprintf(stderr, "Number must be in range 0..%"SC_FORMAT_LEN_SIZE_T"u\n",
sizeof buffer);
sizeof(buffer));
return -1;
}