aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-03-14 15:01:53 +0100
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-03-16 11:08:52 +0100
commitf8a77d3ca9f39e7ee07b5e536919d7344d8905a0 (patch)
tree17cfeb4d0521adb365396c593af62684ed371c76 /src/util
parentb7c6edb0e5218a3f09e11ca3c6455eccd958e959 (diff)
util: Use TALER_CURRENCY_LEN instead of sizeof()
Diffstat (limited to 'src/util')
-rw-r--r--src/util/amount.c2
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;
}