summaryrefslogtreecommitdiff
path: root/graphics/png/patches/patch-ab
blob: 8a938890726d4c9dea8a9befc0c9b06562de3ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-ab,v 1.4 2002/08/25 18:39:22 jlam Exp $

--- pngtest.c.orig	Wed Dec 12 23:37:22 2001
+++ pngtest.c	Fri Jul 19 03:18:50 2002
@@ -543,7 +543,7 @@
          }
          if (pinfo->next == NULL)
          {
-            fprintf(STDERR, "Pointer %x not found\n", (unsigned int)ptr);
+            fprintf(STDERR, "Pointer %p not found\n", ptr);
             break;
          }
          ppinfo = &pinfo->next;
@@ -1396,8 +1396,8 @@
                current_allocation);
             while (pinfo != NULL)
             {
-               fprintf(STDERR, " %lu bytes at %x\n", pinfo->size, 
-                 (unsigned int) pinfo->pointer);
+               fprintf(STDERR, " %lu bytes at %p\n", pinfo->size, 
+                 pinfo->pointer);
                pinfo = pinfo->next;
             }
          }
@@ -1471,8 +1471,8 @@
                 current_allocation);
              while (pinfo != NULL)
              {
-                fprintf(STDERR," %lu bytes at %x\n",
-                   pinfo->size, (unsigned int)pinfo->pointer);
+                fprintf(STDERR," %lu bytes at %p\n", pinfo->size,
+		  pinfo->pointer);
                 pinfo = pinfo->next;
              }
           }