From: Jim Meyering Date: Sun, 21 Apr 1996 21:07:13 +0000 (+0000) Subject: (decode_one_format): Use printf's L modifier for long doubles, X-Git-Tag: TEXTUTILS-1_14c~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c07d15973c72e28ced5134c7614ff43e78789ead;p=thirdparty%2Fcoreutils.git (decode_one_format): Use printf's L modifier for long doubles, not `l'. From Eric Backus. --- diff --git a/src/od.c b/src/od.c index d8f52b1262..239357122c 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);