diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-04-01 16:54:46 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2016-04-01 16:54:46 +0000 |
commit | e5006d88eb1941fb306693f74f586d4752380ad6 (patch) | |
tree | 5c850d461efabfe120d060ea9b35830bd91c5ebe /src/mod_cml_funcs.c | |
parent | dac02e257c92618d83e5bdef09121bf4563c98c1 (diff) | |
download | lighttpd-git-e5006d88eb1941fb306693f74f586d4752380ad6.tar.gz |
pass buf size to li_tohex()
also change passing of fixed-sized arrays: need to pass pointer to array
as otherwise size does not get enforced
From: Glenn Strauss <gstrauss@gluelogic.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3135 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_cml_funcs.c')
-rw-r--r-- | src/mod_cml_funcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_cml_funcs.c b/src/mod_cml_funcs.c index 5625be76..8e809817 100644 --- a/src/mod_cml_funcs.c +++ b/src/mod_cml_funcs.c @@ -60,7 +60,7 @@ int f_crypto_md5(lua_State *L) { li_MD5_Update(&Md5Ctx, (unsigned char *) s, (unsigned int) s_len); li_MD5_Final(HA1, &Md5Ctx); - li_tohex(hex, (const char*) HA1, 16); + li_tohex(hex, sizeof(hex), (const char*) HA1, 16); lua_pushstring(L, hex); |