util: Use TALER_CURRENCY_LEN instead of sizeof()

This commit is contained in:
Sree Harsha Totakura 2015-03-14 15:01:53 +01:00
parent b7c6edb0e5
commit f8a77d3ca9

View File

@ -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;
}