Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2020-05-26 08:42:55 +01:00
13 changed files with 198 additions and 235 deletions

View File

@ -406,11 +406,11 @@ args_string_percentage(const char *value, long long minval, long long maxval,
}
ll = (curval * ll) / 100;
if (ll < minval) {
*cause = xstrdup("too large");
*cause = xstrdup("too small");
return (0);
}
if (ll > maxval) {
*cause = xstrdup("too small");
*cause = xstrdup("too large");
return (0);
}
} else {