lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs

commit 87c007f07e20b763de1a084fa7f8c9edbc9e397d
parent cb4b9956f6a38b659d3b176f04ffdb57ed331e5e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon,  5 May 2014 14:35:41 +0100

Use my_strerror in bcrypt.random

Diffstat:
src/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -182,7 +182,7 @@ static int luabcrypt_random( lua_State * const L ) { int rv = open_random( path ); if( rv != 0 ) { - lua_pushstring( L, strerror( errno ) ); + lua_pushstring( L, my_strerror( rv ) ); return lua_error( L ); }