diff options
author | Kim Alvefur <zash@zash.se> | 2013-08-10 19:02:52 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-08-10 19:02:52 +0200 |
commit | e350fb8478bc304f4ca1ea1e29829b6d37066cb6 (patch) | |
tree | 1b048e0101426e6823a635cb2859b51d4a668ec1 | |
parent | 1d833bb80779ed9c9e1d7ec6c7fab231ebf48182 (diff) | |
download | prosody-e350fb8478bc304f4ca1ea1e29829b6d37066cb6.tar.gz prosody-e350fb8478bc304f4ca1ea1e29829b6d37066cb6.zip |
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
-rw-r--r-- | util-src/pposix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c index c0d1f5a2..2e1de971 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -491,7 +491,7 @@ int string2resource(const char *s) { return -1; } -int arg_to_rlimit(lua_State* L, int idx, rlim_t current) { +unsigned long int arg_to_rlimit(lua_State* L, int idx, rlim_t current) { switch(lua_type(L, idx)) { case LUA_TSTRING: if(strcmp(lua_tostring(L, idx), "unlimited") == 0) |