Merge pull request #2610 from matthiasclasen/icon-size-limit

icon validator: Fix an off-by-one
This commit is contained in:
Matthias Clasen
2019-01-18 10:17:16 -05:00
committed by GitHub

View File

@@ -76,14 +76,14 @@ main (int argc, char *argv[])
}
width = g_ascii_strtoll (argv[1], NULL, 10);
if (width <= 16 || width > 4096)
if (width < 16 || width > 4096)
{
g_printerr ("Bad width limit: %s\n", argv[1]);
return 1;
}
height = g_ascii_strtoll (argv[2], NULL, 10);
if (height <= 16 || height > 4096)
if (height < 16 || height > 4096)
{
g_printerr ("Bad height limit: %s\n", argv[2]);
return 1;