diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-12-07 15:06:54 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-12-07 15:06:54 +0100 |
commit | 4e59b8e69f79ded079430e73f7ee023dd26f7c0f (patch) | |
tree | f455f26eec737a313ece2a2a7b7356a59ff6e52b /src/pq | |
parent | b365e4d52a723b48bb018a8c2dbfc8fe1050988a (diff) | |
download | gnunet-4e59b8e69f79ded079430e73f7ee023dd26f7c0f.tar.gz gnunet-4e59b8e69f79ded079430e73f7ee023dd26f7c0f.zip |
fix libgnunetpq for RSA encoding
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_query_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c index 3bc84082d..34de97eb3 100644 --- a/src/pq/pq_query_helper.c +++ b/src/pq/pq_query_helper.c | |||
@@ -304,7 +304,7 @@ qconv_rsa_public_key (void *cls, | |||
304 | &buf); | 304 | &buf); |
305 | scratch[0] = buf; | 305 | scratch[0] = buf; |
306 | param_values[0] = (void *) buf; | 306 | param_values[0] = (void *) buf; |
307 | param_lengths[0] = buf_size - 1; /* DB doesn't like the trailing \0 */ | 307 | param_lengths[0] = buf_size; |
308 | param_formats[0] = 1; | 308 | param_formats[0] = 1; |
309 | return 1; | 309 | return 1; |
310 | } | 310 | } |