aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_get-tips-ID.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-08 17:31:11 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-08 17:31:11 +0530
commit714b111f6c99157537f19a454ad3118e4e8d097e (patch)
tree1cafeb3c6190d6957ac1863154d26f2518dc14e2 /src/backend/taler-merchant-httpd_get-tips-ID.c
parent229fbc1933e1beddb847604b92ae628d0e897d68 (diff)
slash termination in the right place
Diffstat (limited to 'src/backend/taler-merchant-httpd_get-tips-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_get-tips-ID.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_get-tips-ID.c b/src/backend/taler-merchant-httpd_get-tips-ID.c
index 9eb0b85c..75d13332 100644
--- a/src/backend/taler-merchant-httpd_get-tips-ID.c
+++ b/src/backend/taler-merchant-httpd_get-tips-ID.c
@@ -90,11 +90,12 @@ TMH_make_taler_tip_uri (struct MHD_Connection *con,
GNUNET_buffer_write_path (&buf,
instance_id);
}
+ /* Ensure previous part is slash-terminated */
+ GNUNET_buffer_write_path (&buf,
+ "");
GNUNET_buffer_write_data_encoded (&buf,
tip_id,
sizeof (*tip_id));
- GNUNET_buffer_write_str (&buf,
- "/");
return GNUNET_buffer_reap_str (&buf);
}