]> granicus.if.org Git - mutt/commitdiff
Fix %. formats. From EGE.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 19 May 2000 07:36:42 +0000 (07:36 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 19 May 2000 07:36:42 +0000 (07:36 +0000)
hdrline.c

index e53ceb7b20c89e3be43e0787212f93a8b020dd01..2a0bf2d0888f72bdc82c05831f621e751d4e9a98 100644 (file)
--- 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);