projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CQL to CCL: add ()s for boolean sub terms
[yaz-moved-to-github.git]
/
src
/
atoin.c
diff --git
a/src/atoin.c
b/src/atoin.c
index
39af45f
..
29692a4
100644
(file)
--- 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++)
{
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;
return 0;
*val = atoi_n(buf, size);
return 1;