Strip trailing blanks from category names 0.3
authorMichael Smith <smithm@netapps.com.au>
Fri Feb 12 22:49:44 2010 +1100 (2010-02-12)
changeset 40fc89a72a57a6
parent 39 ac81621fb811
child 41 8e0c0f6ab171
Strip trailing blanks from category names
list.c
     1.1 --- a/list.c	Fri Feb 12 22:42:03 2010 +1100
     1.2 +++ b/list.c	Fri Feb 12 22:49:44 2010 +1100
     1.3 @@ -95,6 +95,10 @@
     1.4    {
     1.5      *br = '\0';
     1.6    }
     1.7 +  while(name[strlen(name)-1] == ' ')
     1.8 +  {
     1.9 +    name[strlen(name)-1] = '\0';
    1.10 +  }
    1.11    addCategory(name);
    1.12    util_create_button(list_window,buttonBox,name,selectCategory);
    1.13  }