getopt: fix error msg for invalid dpi

This commit is contained in:
Oliver Smith 2022-07-31 21:10:00 +02:00 committed by Caleb Connolly
parent 9c05d2c7f3
commit 883ce77d1e
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -254,7 +254,7 @@ int main(int argc, char **argv)
} }
dpi = strtol(optarg, &end, 10); dpi = strtol(optarg, &end, 10);
if (end == optarg) { if (end == optarg) {
fprintf(stderr, "Invalid font size: %s\n", fprintf(stderr, "Invalid dpi: %s\n",
optarg); optarg);
return usage(); return usage();
} }