diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-10-30 15:45:50 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-10-30 15:46:49 +0100 |
commit | 8511dd1871fdea1ba0c63baa5becf0ede1658007 (patch) | |
tree | cc18a536c04c0cb80c637311bf8343dddeb52737 /src | |
parent | f8b69d1dfc307562a353f6aa923b7c2b915aaddb (diff) |
shared: "max" in the string->number conversion is meant to be inclusive
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index ca80bfe2e8..284035c33b 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -339,7 +339,7 @@ unsigned long long random_ull(void); if (name##_table[i] && \ streq(name##_table[i], s)) \ return i; \ - if (safe_atou(s, &u) >= 0 && u < max) \ + if (safe_atou(s, &u) >= 0 && u <= max) \ return (type) u; \ return (type) -1; \ } \ |