summaryrefslogtreecommitdiff
path: root/icon-validator
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-01-18 07:47:38 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-01-18 07:47:38 -0500
commit64958b4d806cf0c92db848c1badb7f83f304972b (patch)
tree7ae02484f5913237c0104122f6b630d0eb13a0ac /icon-validator
parentb0615922ffb4718ec421886e97cc4ef88a794b5d (diff)
downloadflatpak-64958b4d806cf0c92db848c1badb7f83f304972b.tar.gz
icon validator: Fix an off-by-one
I meant to allow 16 as a size limit.
Diffstat (limited to 'icon-validator')
-rw-r--r--icon-validator/validate-icon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/icon-validator/validate-icon.c b/icon-validator/validate-icon.c
index c85f1bef..fe17067f 100644
--- a/icon-validator/validate-icon.c
+++ b/icon-validator/validate-icon.c
@@ -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;