[systemd-commits] src/shared
Michal Schmidt
michich at kemper.freedesktop.org
Tue Oct 30 07:47:30 PDT 2012
src/shared/util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8511dd1871fdea1ba0c63baa5becf0ede1658007
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Oct 30 15:45:50 2012 +0100
shared: "max" in the string->number conversion is meant to be inclusive
diff --git a/src/shared/util.h b/src/shared/util.h
index ca80bfe..284035c 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; \
} \
More information about the systemd-commits
mailing list