kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 4f9044c6e0d9785f66e927e24ed24a87020d6694
parent 31d14d028a078626df9acff54a13ed6530f80bd6
Author: Joris Vink <joris@coders.se>
Date:   Tue, 27 Dec 2016 07:42:42 +0100

fix count in kore_pgsql_query_params().

should fix #159.

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

diff --git a/src/pgsql.c b/src/pgsql.c @@ -169,7 +169,7 @@ kore_pgsql_v_query_params(struct kore_pgsql *pgsql, for (i = 0; i < count; i++) { values[i] = va_arg(args, void *); - lengths[i] = va_arg(args, u_int32_t); + lengths[i] = va_arg(args, int); formats[i] = va_arg(args, int); } } else {