(decode_one_format): Use printf's L modifier for long doubles,
authorJim Meyering <jim@meyering.net>
Sun, 21 Apr 1996 21:07:13 +0000 (21:07 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 21 Apr 1996 21:07:13 +0000 (21:07 +0000)
not `l'.  From Eric Backus.

src/od.c

index d8f52b1..2393571 100644 (file)
--- 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);