diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-14 15:01:53 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-16 11:08:52 +0100 |
commit | f8a77d3ca9f39e7ee07b5e536919d7344d8905a0 (patch) | |
tree | 17cfeb4d0521adb365396c593af62684ed371c76 | |
parent | b7c6edb0e5218a3f09e11ca3c6455eccd958e959 (diff) | |
download | exchange-f8a77d3ca9f39e7ee07b5e536919d7344d8905a0.tar.gz exchange-f8a77d3ca9f39e7ee07b5e536919d7344d8905a0.zip |
util: Use TALER_CURRENCY_LEN instead of sizeof()
-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) | |||
159 | struct TALER_Amount d; | 159 | struct TALER_Amount d; |
160 | d.value = ntohl (dn.value); | 160 | d.value = ntohl (dn.value); |
161 | d.fraction = ntohl (dn.fraction); | 161 | d.fraction = ntohl (dn.fraction); |
162 | memcpy (d.currency, dn.currency, sizeof(dn.currency)); | 162 | memcpy (d.currency, dn.currency, TALER_CURRENCY_LEN); |
163 | 163 | ||
164 | return d; | 164 | return d; |
165 | } | 165 | } |