diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-05-15 15:53:21 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-05-16 11:05:00 +0200 |
commit | 7c28823cafa0692849deae506e81efdbc07f2ed3 (patch) | |
tree | ae955b26766f21370e1da7d7c367c25bc9dec422 /src/bank-lib/fakebank.c | |
parent | be3b891dbd9b1532b9dca91629d478cc3933dfdc (diff) | |
download | exchange-7c28823cafa0692849deae506e81efdbc07f2ed3.tar.xz |
handle base32-wire transfer subject being followed by space+exchange base url in wire plugin and fakebank
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r-- | src/bank-lib/fakebank.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index fb5121687..8d16567fb 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -512,8 +512,17 @@ handle_history (struct TALER_FAKEBANK_Handle *h, continue; } - subject = GNUNET_STRINGS_data_to_string_alloc (&pos->wtid, - sizeof (pos->wtid)); + { + char *ws; + + ws = GNUNET_STRINGS_data_to_string_alloc (&pos->wtid, + sizeof (pos->wtid)); + GNUNET_asprintf (&subject, + "%s %s", + ws, + pos->exchange_base_url); + GNUNET_free (ws); + } trans = json_pack ("{s:I, s:o, s:o, s:s, s:I, s:s}", "row_id", (json_int_t) pos->serial_id, "date", GNUNET_JSON_from_time_abs (pos->date), |