From f8a77d3ca9f39e7ee07b5e536919d7344d8905a0 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Sat, 14 Mar 2015 15:01:53 +0100 Subject: [PATCH] util: Use TALER_CURRENCY_LEN instead of sizeof() --- src/util/amount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/amount.c b/src/util/amount.c index 9bdc0fd93..0b77de82b 100644 --- a/src/util/amount.c +++ b/src/util/amount.c @@ -159,7 +159,7 @@ TALER_amount_ntoh (const struct TALER_AmountNBO dn) struct TALER_Amount d; d.value = ntohl (dn.value); d.fraction = ntohl (dn.fraction); - memcpy (d.currency, dn.currency, sizeof(dn.currency)); + memcpy (d.currency, dn.currency, TALER_CURRENCY_LEN); return d; }