From 28aea651ebd47cb09c4fab52101d1746de642414 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Sat, 6 Dec 2003 21:10:08 +0100 Subject: * scanf/doscan.c: Correction to a couple of trace printfs. (The condition under which they're run is still not right though.) --- scanf/doscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scanf') diff --git a/scanf/doscan.c b/scanf/doscan.c index 3ec3b98a6..8865fcd6f 100644 --- a/scanf/doscan.c +++ b/scanf/doscan.c @@ -476,7 +476,7 @@ __gmp_doscan (const struct gmp_doscan_funs_t *funs, void *data, TRACE (printf ("__gmp_doscan \"%s\"\n", orig_fmt); if (funs->scan == (gmp_doscan_scan_t) sscanf) - printf (" s=\"%s\"\n", (const char *) data)); + printf (" s=\"%s\"\n", * (const char **) data)); /* Don't modify orig_ap, if va_list is actually an array and hence call by reference. It could be argued that it'd be more efficient to leave @@ -586,7 +586,7 @@ __gmp_doscan (const struct gmp_doscan_funs_t *funs, void *data, TRACE (printf (" scan \"%s\"\n", alloc_fmt); if (funs->scan == (gmp_doscan_scan_t) sscanf) - printf (" s=\"%s\"\n", (const char *) data)); + printf (" s=\"%s\"\n", * (const char **) data)); new_chars = -1; if (param.ignore) -- cgit v1.2.1