diff options
Diffstat (limited to 'src/mint/test_mint_deposits.c')
-rw-r--r-- | src/mint/test_mint_deposits.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mint/test_mint_deposits.c b/src/mint/test_mint_deposits.c index 776bc15d..00664cbb 100644 --- a/src/mint/test_mint_deposits.c +++ b/src/mint/test_mint_deposits.c @@ -104,9 +104,12 @@ run (void *cls, char *const *args, const char *cfgfile, htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, UINT32_MAX)); deposit->amount.fraction = htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, UINT32_MAX)); - strcpy (deposit->amount.currency, "EUR"); + GNUNET_assert (strlen (MINT_CURRENCY) < sizeof (deposit->amount.currency)); + strcpy (deposit->amount.currency, MINT_CURRENCY); /* Copy wireformat */ - (void) memcpy (deposit->wire, wire, sizeof (wire)); + memcpy (deposit->wire, + wire, + sizeof (wire)); EXITIF (GNUNET_OK != TALER_MINT_DB_insert_deposit (conn, deposit)); EXITIF (GNUNET_OK != TALER_MINT_DB_get_deposit (conn, |