summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-12-06 21:10:08 +0100
committerKevin Ryde <user42@zip.com.au>2003-12-06 21:10:08 +0100
commit28aea651ebd47cb09c4fab52101d1746de642414 (patch)
treef4dbe1eda2fa7c36476a845873d190a628308abd
parent9741587b1fa7c18fb6ae00becfeeda9a89d48814 (diff)
downloadgmp-28aea651ebd47cb09c4fab52101d1746de642414.tar.gz
* scanf/doscan.c: Correction to a couple of trace printfs.
(The condition under which they're run is still not right though.)
-rw-r--r--scanf/doscan.c4
1 files changed, 2 insertions, 2 deletions
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)