diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/Makefile.am | 2 | ||||
-rw-r--r-- | src/util/amount.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 0edae9506..2aea6b689 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -120,7 +120,7 @@ libtalerutil_la_LIBADD = \ -lm libtalerutil_la_LDFLAGS = \ - -version-info 3:0:2 \ + -version-info 3:1:2 \ -no-undefined diff --git a/src/util/amount.c b/src/util/amount.c index ee50a9bca..cce84d73a 100644 --- a/src/util/amount.c +++ b/src/util/amount.c @@ -87,6 +87,7 @@ TALER_string_to_amount (const char *str, /* parse currency */ colon = strchr (str, (int) ':'); if ( (NULL == colon) || + (colon == str) || ((colon - str) >= TALER_CURRENCY_LEN) ) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |