Fix some error strings, from Kris Katterjohn.

This commit is contained in:
nicm
2020-05-25 18:17:14 +00:00
parent bbfb44e9b2
commit dc893405e1
2 changed files with 3 additions and 3 deletions

View File

@ -407,11 +407,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 {