chiark / gitweb /
fix off by one error in array index assertion
[elogind.git] / src / core / manager.h
index 92985caefb524b70194508bfda0e3f38b2d2ab7c..e014abd04f6e6544ee08bd8a365668f1243f6ab1 100644 (file)
@@ -228,7 +228,7 @@ struct Manager {
         bool default_memory_accounting;
         bool default_blockio_accounting;
 
-        struct rlimit *rlimit[RLIMIT_NLIMITS];
+        struct rlimit *rlimit[_RLIMIT_MAX];
 
         /* non-zero if we are reloading or reexecuting, */
         int n_reloading;