(main): Remove trailing colon from the component name.
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -113,6 +113,7 @@ main (int argc, char **argv) | ... | @@ -113,6 +113,7 @@ main (int argc, char **argv) |
113 | int index; | 113 | int index; |
114 | mailbox_t mbox; | 114 | mailbox_t mbox; |
115 | mh_msgset_t msgset; | 115 | mh_msgset_t msgset; |
116 | size_t len; | ||
116 | 117 | ||
117 | mu_init_nls (); | 118 | mu_init_nls (); |
118 | 119 | ||
... | @@ -134,6 +135,10 @@ main (int argc, char **argv) | ... | @@ -134,6 +135,10 @@ main (int argc, char **argv) |
134 | if (!anno_text && !anno_date) | 135 | if (!anno_text && !anno_date) |
135 | exit (0); | 136 | exit (0); |
136 | 137 | ||
138 | len = strlen (component); | ||
139 | if (len > 0 && component[len-1] == ':') | ||
140 | component[len-1] = 0; | ||
141 | |||
137 | argc -= index; | 142 | argc -= index; |
138 | argv += index; | 143 | argv += index; |
139 | 144 | ... | ... |
-
Please register or sign in to post a comment