commit 5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Wed May 11 16:12:04 2016 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Wed May 11 16:12:04 2016 +0200
zstr_length: do not validate the radix if ZAHL_UNSAFE is used
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/src/zstr_length.c b/src/zstr_length.c
index 869dbc5..7554e78 100644
--- a/src/zstr_length.c
+++ b/src/zstr_length.c
_AT_@ -10,7 +10,7 @@ size_t
zstr_length(z_t a, unsigned long long int radix)
{
size_t size_total = 1, size_temp;
- if (radix < 2)
+ if (check(radix < 2))
libzahl_failure(-ZERROR_INVALID_RADIX);
zset(num, a);
while (!zzero(num)) {
Received on Wed May 11 2016 - 16:16:22 CEST
This archive was generated by hypermail 2.3.0
: Wed May 11 2016 - 16:24:13 CEST