From 5baa137e211690e20f08035696089954140c811e Mon Sep 17 00:00:00 2001 From: Soeren Sandmann Date: Mon, 9 Jan 2006 05:59:44 +0000 Subject: [PATCH] Use gulong for addresses. Bug reported by Martin Reddy. Mon Jan 9 00:59:21 2006 Soeren Sandmann * process.c (read_maps): Use gulong for addresses. Bug reported by Martin Reddy. --- ChangeLog | 5 +++++ process.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 757d71fc..5e5c5e49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 9 00:59:21 2006 Soeren Sandmann + + * process.c (read_maps): Use gulong for addresses. Bug reported by + Martin Reddy. + Sun Jan 8 03:22:22 2006 Soeren Sandmann * process.c (process_flush_caches): Resurrect this function. diff --git a/process.c b/process.c index c230f108..533488bd 100644 --- a/process.c +++ b/process.c @@ -92,8 +92,8 @@ read_maps (int pid) { char file[256]; int count; - guint start; - guint end; + gulong start; + gulong end; guint offset; #if 0 @@ -101,7 +101,7 @@ read_maps (int pid) #endif count = sscanf ( - buffer, "%x-%x %*15s %x %*x:%*x %*u %255s", + buffer, "%lx-%lx %*15s %x %*x:%*x %*u %255s", &start, &end, &offset, file); if (count == 4) {