diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-11 16:12:04 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-11 16:12:04 +0200 |
| commit | 5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb (patch) | |
| tree | 589a52477164350e8580843cd35386079e4cb676 | |
| parent | Work on the manual and zstr_length checks that the radix is valid (diff) | |
| download | libzahl-5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb.tar.gz libzahl-5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb.tar.bz2 libzahl-5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb.tar.xz | |
zstr_length: do not validate the radix if ZAHL_UNSAFE is used
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/zstr_length.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ -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)) { |
