X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fatoin.c;h=0878aaf688cd98b8b4a572f255af0b7697b70850;hb=5ae2f74ba9b27bb7e926d5908471ac79371f7823;hp=39af45f6740011cb8ea3212078a6c3b6ff89bafc;hpb=4f3bcae93d51a26709c12b51261c3d95af610cb2;p=yaz-moved-to-github.git diff --git a/src/atoin.c b/src/atoin.c index 39af45f..0878aaf 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -1,9 +1,9 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ -/** +/** * \file atoin.c * \brief Implements atoi_n function. */ @@ -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;