gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 05/05: Prefer strncpy()


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 05/05: Prefer strncpy()
Date: Wed, 25 Jul 2018 13:08:30 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

commit 9f8b6a6b5de6593122317c5b2e4d94b3895875e9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 25 13:08:18 2018 +0200

    Prefer strncpy()
---
 src/benchmark/taler-exchange-benchmark-new.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/benchmark/taler-exchange-benchmark-new.c 
b/src/benchmark/taler-exchange-benchmark-new.c
index 5e55583..abe57b1 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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]