X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fatoin.c;h=cb3a89922eb9efe987db5c11eb7ada47ea1dd9a8;hb=04b2fff543057fc1f6df0b5fb0347466bf51660c;hp=1bc5947e8f433fa9a4ddd8789bff3d6be3060738;hpb=c6e47cbbff56f39f6d81b079ebaeac41d793d4d9;p=yaz-moved-to-github.git diff --git a/src/atoin.c b/src/atoin.c index 1bc5947..cb3a899 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1997-2003, Index Data + * Copyright (c) 1997-2004, Index Data * See the file LICENSE for details. * - * $Id: atoin.c,v 1.1 2003-10-27 12:21:30 adam Exp $ + * $Id: atoin.c,v 1.2 2004-08-13 11:35:37 adam Exp $ */ #if HAVE_CONFIG_H @@ -19,7 +19,7 @@ int atoi_n (const char *buf, int len) while (--len >= 0) { - if (isdigit (*buf)) + if (isdigit (*(const unsigned char *) buf)) val = val*10 + (*buf - '0'); buf++; }