From c70d61d51d7812d4b896f7be62a218b8d6b90eaa Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Fri, 12 Jul 2013 04:22:46 +0000 Subject: [PATCH] Revert r253247. This change should be improved based on a lesson learnt from r233646 first. Pointed out by: jmallett --- lib/libgeom/geom_xml2tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c index 1b1ce4f2055e..02be01991c1e 100644 --- a/lib/libgeom/geom_xml2tree.c +++ b/lib/libgeom/geom_xml2tree.c @@ -75,10 +75,10 @@ StartElement(void *userData, const char *name, const char **attr) ref = NULL; for (i = 0; attr[i] != NULL; i += 2) { if (!strcmp(attr[i], "id")) { - id = (void *)strtoumax(attr[i + 1], NULL, 0); + id = (void *)strtoul(attr[i + 1], NULL, 0); mt->nident++; } else if (!strcmp(attr[i], "ref")) { - ref = (void *)strtoumax(attr[i + 1], NULL, 0); + ref = (void *)strtoul(attr[i + 1], NULL, 0); } else printf("%*.*s[%s = %s]\n", mt->level + 1, mt->level + 1, "",