summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-21 21:07:13 +0000
committerJim Meyering <jim@meyering.net>1996-04-21 21:07:13 +0000
commitc07d15973c72e28ced5134c7614ff43e78789ead (patch)
tree0384573760b0a7f84b820fe1f5621e2474d3b9f3 /src/od.c
parent5beebbd8da1b2db1d09f2633592e408a027bdb26 (diff)
downloadcoreutils-c07d15973c72e28ced5134c7614ff43e78789ead.tar.xz
(decode_one_format): Use printf's L modifier for long doubles,
not `l'. From Eric Backus.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/od.c b/src/od.c
index d8f52b126..239357122 100644
--- a/src/od.c
+++ b/src/od.c
@@ -855,7 +855,7 @@ decode_one_format (const char *s, const char **next, struct tspec *tspec)
#ifdef HAVE_LONG_DOUBLE
case FLOAT_LONG_DOUBLE:
print_function = print_long_double;
- pre_fmt_string = "%%%d.%dle%%c";
+ pre_fmt_string = "%%%d.%dLe%%c";
fmt_string = xmalloc (strlen (pre_fmt_string));
sprintf (fmt_string, pre_fmt_string,
LDBL_DIG + 8, LDBL_DIG);