<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,6 @@
 
 void sepbar(const char *in)
 {
-  char buff[1024];
   WINDOW *sepwin;
   const owl_messagelist *ml;
   const owl_view *v;
@@ -34,23 +33,21 @@ void sepbar(const char *in)
     return;
   }
 
-  wmove(sepwin, 0, 2);  
+  wmove(sepwin, 0, 2);
 
-  if (owl_messagelist_get_size(ml)==0) {
-    strcpy(buff, &quot; (-/-) &quot;);
-  } else {
-    snprintf(buff, 1024, &quot; (%i/%i/%i) &quot;, owl_global_get_curmsg(&amp;g)+1,
-	    owl_view_get_size(v),
-	    owl_messagelist_get_size(ml));
-  }
-  waddstr(sepwin, buff);
+  if (owl_messagelist_get_size(ml) == 0)
+    waddstr(sepwin, &quot; (-/-) &quot;);
+  else
+    wprintw(sepwin, &quot; (%i/%i/%i) &quot;, owl_global_get_curmsg(&amp;g) + 1,
+            owl_view_get_size(v),
+            owl_messagelist_get_size(ml));
 
   foo=owl_view_get_filtname(v);
-  if (strcmp(foo, owl_global_get_view_home(&amp;g))) wattroff(sepwin, A_REVERSE);
-  waddstr(sepwin, &quot; &quot;);
-  waddstr(sepwin, owl_view_get_filtname(v));
-  waddstr(sepwin, &quot; &quot;);
-  if (strcmp(foo, owl_global_get_view_home(&amp;g))) wattron(sepwin, A_REVERSE);
+  if (strcmp(foo, owl_global_get_view_home(&amp;g)))
+      wattroff(sepwin, A_REVERSE);
+  wprintw(sepwin, &quot; %s &quot;, owl_view_get_filtname(v));
+  if (strcmp(foo, owl_global_get_view_home(&amp;g)))
+      wattron(sepwin, A_REVERSE);
 
   if (owl_mainwin_is_curmsg_truncated(owl_global_get_mainwin(&amp;g))) {
     getyx(sepwin, y, x);
@@ -73,8 +70,7 @@ void sepbar(const char *in)
   if (owl_global_get_rightshift(&amp;g)&gt;0) {
     getyx(sepwin, y, x);
     wmove(sepwin, y, x+2);
-    snprintf(buff, 1024, &quot; right: %i &quot;, owl_global_get_rightshift(&amp;g));
-    waddstr(sepwin, buff);
+    wprintw(sepwin, &quot; right: %i &quot;, owl_global_get_rightshift(&amp;g));
   }
 
   if (owl_global_is_zaway(&amp;g) || owl_global_is_aaway(&amp;g)) {</diff>
      <filename>util.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e3068de13716f360b58ba2e2cdc99f7b7e4b9a5d</id>
    </parent>
  </parents>
  <author>
    <name>Karl Ramm</name>
    <email>kcr@1ts.org</email>
  </author>
  <url>http://github.com/nelhage/barnowl/commit/96c3265adb3b452bec79a85030e082fc64d14011</url>
  <id>96c3265adb3b452bec79a85030e082fc64d14011</id>
  <committed-date>2009-10-30T09:06:34-07:00</committed-date>
  <authored-date>2009-09-25T10:51:34-07:00</authored-date>
  <message>Tighten up sepbar()</message>
  <tree>904158e86a5d1384825f5a9f849973f258100588</tree>
  <committer>
    <name>Karl Ramm</name>
    <email>kcr@1ts.org</email>
  </committer>
</commit>
