From 6c774a1f032e2e09ab5e22a58a1979acc2c3430b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 May 2015 14:16:10 +0200 Subject: completing test-case implementation: --- src/pq/db_pq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pq/db_pq.c') diff --git a/src/pq/db_pq.c b/src/pq/db_pq.c index 42ce3fa7..220ce9f9 100644 --- a/src/pq/db_pq.c +++ b/src/pq/db_pq.c @@ -113,7 +113,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn, param_formats[off] = 1; off++; param_values[off] = (void *) amount->currency; - param_lengths[off] = strlen (amount->currency) + 1; + param_lengths[off] = strlen (amount->currency); param_formats[off] = 1; off++; } @@ -136,7 +136,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn, param_formats[off] = 1; off++; param_values[off] = (void *) amount->currency; - param_lengths[off] = strlen (amount->currency) + 1; + param_lengths[off] = strlen (amount->currency); param_formats[off] = 1; off++; } -- cgit v1.2.3