From: Adam Dickmeiss Date: Thu, 3 Dec 2009 22:16:12 +0000 (+0100) Subject: SRW/SRU decodes integers using odr_atoi X-Git-Tag: v4.0.0~89 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=d6dd2c2d762c1715d0733a0cb7afebc706a77b17 SRW/SRU decodes integers using odr_atoi Function odr_atoi is used instead of atoi. --- diff --git a/src/srw.c b/src/srw.c index bc3c747..64a868b 100644 --- a/src/srw.c +++ b/src/srw.c @@ -192,7 +192,7 @@ static int match_xsd_integer(xmlNodePtr ptr, const char *elem, ODR o, ptr = ptr->children; if (!ptr || ptr->type != XML_TEXT_NODE) return 0; - *val = odr_intdup(o, atoi((const char *) ptr->content)); + *val = odr_intdup(o, odr_atoi((const char *) ptr->content)); return 1; }