diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/amount.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |