From: Thomas Roessler Date: Fri, 19 May 2000 07:36:42 +0000 (+0000) Subject: Fix %. formats. From EGE. X-Git-Tag: mutt-1-3-1-rel~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af69bc7aa662a9fc6a53cfa6ee0d070b3f0d0c09;p=mutt Fix %. formats. From EGE. --- diff --git a/hdrline.c b/hdrline.c index e53ceb7b..2a0bf2d0 100644 --- a/hdrline.c +++ b/hdrline.c @@ -242,18 +242,13 @@ static void hdr_format_s (char *dest, if (*prefix == '-') ++prefix, right_justify = 0; min_width = strtol (prefix, &p, 10); - if (p > prefix) + if (*p == '.') { - if (*p == '.') - { - prefix = p + 1; - max_width = strtol (prefix, &p, 10); - if (p <= prefix) - max_width = INT_MAX; - } + prefix = p + 1; + max_width = strtol (prefix, &p, 10); + if (p <= prefix) + max_width = INT_MAX; } - else - min_width = 0; mutt_format_string (dest, destlen, min_width, max_width, right_justify, ' ', s, -1);