diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-07-25 13:08:18 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-07-25 13:08:18 +0200 |
commit | 9f8b6a6b5de6593122317c5b2e4d94b3895875e9 (patch) | |
tree | e9ee42d2635734086a16111933cd8a5a09002130 /src | |
parent | 2393e26b021ef3d60dd1f980b541b2a06a8f583b (diff) | |
download | exchange-9f8b6a6b5de6593122317c5b2e4d94b3895875e9.tar.xz |
Prefer strncpy()
Diffstat (limited to 'src')
-rw-r--r-- | src/benchmark/taler-exchange-benchmark-new.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/benchmark/taler-exchange-benchmark-new.c b/src/benchmark/taler-exchange-benchmark-new.c index 5e5558335..abe57b109 100644 --- a/src/benchmark/taler-exchange-benchmark-new.c +++ b/src/benchmark/taler-exchange-benchmark-new.c @@ -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); |