summaryrefslogtreecommitdiff
path: root/src/mod_cml_funcs.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-04-01 16:54:46 +0000
committerStefan Bühler <stbuehler@web.de>2016-04-01 16:54:46 +0000
commite5006d88eb1941fb306693f74f586d4752380ad6 (patch)
tree5c850d461efabfe120d060ea9b35830bd91c5ebe /src/mod_cml_funcs.c
parentdac02e257c92618d83e5bdef09121bf4563c98c1 (diff)
downloadlighttpd-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.c2
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);