Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Wei Liu <wei.l...@citrix.com> --- tools/xl/xl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c index 9a692d5ae6..81a50f2edb 100644 --- a/tools/xl/xl_parse.c +++ b/tools/xl/xl_parse.c @@ -387,7 +387,7 @@ static unsigned long parse_ulong(const char *str) char *endptr; unsigned long val; - val = strtoul(str, &endptr, 10); + val = strtoul(str, &endptr, 0); if (endptr == str || val == ULONG_MAX) { fprintf(stderr, "xl: failed to convert \"%s\" to number\n", str); exit(EXIT_FAILURE); -- 2.15.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel