summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 653fd6be93..3df8d9db2b 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -852,15 +852,21 @@ bool tagtree_import(void)
852 852
853static bool parse_menu(const char *filename); 853static bool parse_menu(const char *filename);
854 854
855static int parse_line(int n, const char *buf, void *parameters) 855static int parse_line(int n, char *buf, void *parameters)
856{ 856{
857 char data[256]; 857 char data[256];
858 int variable; 858 int variable;
859 static bool read_menu; 859 static bool read_menu;
860 int i; 860 int i;
861 char *p;
861 862
862 (void)parameters; 863 (void)parameters;
863 864
865 /* Strip possible <CR> at end of line. */
866 p = strchr(buf, '\r');
867 if (p != NULL)
868 *p = '\0';
869
864 logf("parse:%d/%s", n, buf); 870 logf("parse:%d/%s", n, buf);
865 871
866 /* First line, do initialisation. */ 872 /* First line, do initialisation. */