util: Use TALER_CURRENCY_LEN instead of sizeof()
This commit is contained in:
parent
b7c6edb0e5
commit
f8a77d3ca9
@ -159,7 +159,7 @@ TALER_amount_ntoh (const struct TALER_AmountNBO dn)
|
|||||||
struct TALER_Amount d;
|
struct TALER_Amount d;
|
||||||
d.value = ntohl (dn.value);
|
d.value = ntohl (dn.value);
|
||||||
d.fraction = ntohl (dn.fraction);
|
d.fraction = ntohl (dn.fraction);
|
||||||
memcpy (d.currency, dn.currency, sizeof(dn.currency));
|
memcpy (d.currency, dn.currency, TALER_CURRENCY_LEN);
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user