summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_tip_authorize.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-31 19:26:14 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-31 19:26:14 +0200
commit990f4d4d5192506aa4a5f6510449e0aa79a2e61f (patch)
tree31281e31d3c138ddf628989a32588909d4f34584 /src/lib/merchant_api_tip_authorize.c
parent4089ebeec60159c438c0da04115f416d314713ef (diff)
downloadmerchant-990f4d4d5192506aa4a5f6510449e0aa79a2e61f.tar.gz
merchant-990f4d4d5192506aa4a5f6510449e0aa79a2e61f.tar.bz2
merchant-990f4d4d5192506aa4a5f6510449e0aa79a2e61f.zip
fix misc issues in client APIs
Diffstat (limited to 'src/lib/merchant_api_tip_authorize.c')
-rw-r--r--src/lib/merchant_api_tip_authorize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/merchant_api_tip_authorize.c b/src/lib/merchant_api_tip_authorize.c
index 4604fc0c..0147ec76 100644
--- a/src/lib/merchant_api_tip_authorize.c
+++ b/src/lib/merchant_api_tip_authorize.c
@@ -239,8 +239,8 @@ TALER_MERCHANT_tip_authorize2 (
tao->cb_cls = authorize_cb_cls;
{
- char res_str[sizeof (struct GNUNET_HashCode) * 2];
- char arg_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2 + 32];
+ char res_str[sizeof (*reserve_pub) * 2];
+ char arg_str[sizeof (res_str) + 48];
char *end;
end = GNUNET_STRINGS_data_to_string (reserve_pub,
@@ -250,7 +250,7 @@ TALER_MERCHANT_tip_authorize2 (
*end = '\0';
GNUNET_snprintf (arg_str,
sizeof (arg_str),
- "/reserves/%s/tip-authorize",
+ "/private/reserves/%s/tip-authorize",
res_str);
tao->url = TALER_url_join (backend_url,
arg_str,
@@ -341,7 +341,7 @@ TALER_MERCHANT_tip_authorize (struct GNUNET_CURL_Context *ctx,
tao->cb_cls = authorize_cb_cls;
tao->url = TALER_url_join (backend_url,
- "/tips",
+ "/private/tips",
NULL);
if (NULL == tao->url)
{