diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 19:53:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 19:53:48 +0200 |
commit | e5aed9e5cbe9af294157b8be428385f609c4e066 (patch) | |
tree | 0eaf214998e3f92d5a25cd1f59b480d2b72a6b2f /src/wire | |
parent | 85a2d3dc0e6938ca751bd72cf556173645e09e78 (diff) | |
download | exchange-e5aed9e5cbe9af294157b8be428385f609c4e066.tar.xz |
fix signed calls to isalpha/isdigit/isspace etc.
Diffstat (limited to 'src/wire')
-rw-r--r-- | src/wire/plugin_wire_sepa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wire/plugin_wire_sepa.c b/src/wire/plugin_wire_sepa.c index 6300d8205..f0cef029f 100644 --- a/src/wire/plugin_wire_sepa.c +++ b/src/wire/plugin_wire_sepa.c @@ -309,7 +309,7 @@ validate_iban (const char *iban) nbuf = GNUNET_malloc ((len * 2) + 1); for (i=0, j=0; i < len; i++) { - if (isalpha ((int) ibancpy[i])) + if (isalpha ((unsigned char) ibancpy[i])) { if (2 != snprintf(&nbuf[j], 3, @@ -326,7 +326,7 @@ validate_iban (const char *iban) j++; } for (j=0;'\0' != nbuf[j];j++) - GNUNET_assert (isdigit(nbuf[j])); + GNUNET_assert (isdigit( (unsigned char) nbuf[j])); GNUNET_assert (sizeof(dividend) >= 8); remainder = 0; for (i=0; i<j; i+=16) |