Prefer strncpy()

This commit is contained in:
Marcello Stanisci 2018-07-25 13:08:18 +02:00
parent 2393e26b02
commit 9f8b6a6b5d
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -196,9 +196,11 @@ run (void *cls,
AMOUNT_4,
AMOUNT_1);
strcpy (total_reserve_amount.currency,
currency);
total_reserve_amount.value = 5 * howmany_coins;
strncpy (total_reserve_amount.currency,
currency,
TALER_CURRENCY_LEN);
GNUNET_asprintf (&withdraw_fee_str,
"%s:0.1",
currency);