projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6278ee3
)
SRW/SRU decodes integers using odr_atoi
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 3 Dec 2009 22:16:12 +0000
(23:16 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 3 Dec 2009 22:16:12 +0000
(23:16 +0100)
Function odr_atoi is used instead of atoi.
src/srw.c
patch
|
blob
|
history
diff --git
a/src/srw.c
b/src/srw.c
index
bc3c747
..
64a868b
100644
(file)
--- 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;
}