[yum-commits] xml-parser.c

James Antill james at osuosl.org
Thu Feb 24 16:19:02 UTC 2011


 xml-parser.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ffdcc0bf2bc9abc1f36f47378128af9afe2134e9
Author: James Antill <james at and.org>
Date:   Thu Feb 24 11:18:54 2011 -0500

    Change the conversion to be 64bit safe too, *sigh*. BZ 612409

diff --git a/xml-parser.c b/xml-parser.c
index 9617d17..35f04e6 100644
--- a/xml-parser.c
+++ b/xml-parser.c
@@ -185,11 +185,11 @@ primary_parser_package_start (PrimarySAXContext *ctx,
             value = attrs[++i];
 
             if (!strcmp (attr, "package"))
-                p->size_package = strtol(value, NULL, 10);
+                p->size_package = strtoll(value, NULL, 10);
             else if (!strcmp (attr, "installed"))
-                p->size_installed = strtol(value, NULL, 10);
+                p->size_installed = strtoll(value, NULL, 10);
             else if (!strcmp (attr, "archive"))
-                p->size_archive = strtol(value, NULL, 10);
+                p->size_archive = strtoll(value, NULL, 10);
         }
     }
 


More information about the Yum-commits mailing list