From 5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 11 May 2016 16:12:04 +0200 Subject: zstr_length: do not validate the radix if ZAHL_UNSAFE is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zstr_length.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zstr_length.c') 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)) { -- cgit v1.2.3-70-g09d2