Use trim() to strip whitespace from the end of header fields
[mmh] / uip / anno.c
index 2647d97..e874238 100644 (file)
@@ -328,10 +328,7 @@ annolist(char *file, unsigned char *comp, int number)
 
                if (strncasecmp(field, comp, length)==0 &&
                                field[length] == ':') {
-                       for (cp = field + length + 1;
-                                       *cp == ' ' || *cp == '\t'; cp++) {
-                               continue;
-                       }
+                       cp = trim(field + length + 1);
                        if (number) {
                                printf("%d\t", count++);
                        }