From a5dd43fc9e75e2267b42e0effb446d0483ea92e3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 9 Nov 2011 12:31:23 +0100 Subject: [PATCH] Fix atoi_n_check digit test Thanks to Giannis Kosmas for spotting it. --- src/atoin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atoin.c b/src/atoin.c index 39af45f..29692a4 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -33,7 +33,7 @@ int atoi_n_check(const char *buf, int size, int *val) { int i; for (i = 0; i < size; i++) - if (!yaz_isdigit(*buf)) + if (!yaz_isdigit(buf[i])) return 0; *val = atoi_n(buf, size); return 1; -- 1.7.10.4