]> git.pond.sub.org Git - empserver/blobdiff - src/util/fairland.c
Fix buffer overruns in fairland for island size zero
[empserver] / src / util / fairland.c
index 3b13d0dc4a2397d259168c595c912f488d5187a6..e4109f28666e362813e91e98285105c3245cd9dc 100644 (file)
@@ -368,8 +368,8 @@ parse_args(int argc, char *argv[])
        is = atoi(argv[3]);
     else
        is = sc / 2;
-    if (is < 0)
-       is = 0;
+    if (is < 1)
+       is = 1;
 
     if (argc > 4)
        sp = atoi(argv[4]);