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 9451387a66..1fb05b494c 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -836,15 +836,21 @@ bool tagtree_import(void)
836 836
837static bool parse_menu(const char *filename); 837static bool parse_menu(const char *filename);
838 838
839static int parse_line(int n, const char *buf, void *parameters) 839static int parse_line(int n, char *buf, void *parameters)
840{ 840{
841 char data[256]; 841 char data[256];
842 int variable; 842 int variable;
843 static bool read_menu; 843 static bool read_menu;
844 int i; 844 int i;
845 char *p;
845 846
846 (void)parameters; 847 (void)parameters;
847 848
849 /* Strip possible <CR> at end of line. */
850 p = strchr(buf, '\r');
851 if (p != NULL)
852 *p = '\0';
853
848 logf("parse:%d/%s", n, buf); 854 logf("parse:%d/%s", n, buf);
849 855
850 /* First line, do initialisation. */ 856 /* First line, do initialisation. */