]> granicus.if.org Git - mutt/commitdiff
Rename pad_char to m_pad_char - AIX curses have a macro called
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 12:49:37 +0000 (12:49 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 12:49:37 +0000 (12:49 +0000)
pad_char.  Noted by Jan Chrillesen <jan@chrillesen.dk>.

curs_lib.c

index 82ee5d75c13c197c302f01f7399356f250ec96cd..8e8307990fb0a435f19689d4cfc53185dd3d2761 100644 (file)
@@ -530,7 +530,7 @@ int mutt_addwch (wchar_t wc)
 
 void mutt_format_string (char *dest, size_t destlen,
                         int min_width, int max_width,
-                        int right_justify, char pad_char,
+                        int right_justify, char m_pad_char,
                         const char *s, size_t n,
                         int arboreal)
 {
@@ -580,12 +580,12 @@ void mutt_format_string (char *dest, size_t destlen,
     while (--p >= dest)
       p[w] = *p;
     while (--w >= 0)
-      dest[w] = pad_char;
+      dest[w] = m_pad_char;
   }
   else
   {
     while (--w >= 0)
-      *p++ = pad_char;
+      *p++ = m_pad_char;
     *p = '\0';
   }
 }