From f2ef42c1da977402e19e6ac77165f9cd0fd25643 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Mon, 20 Jun 2011 15:53:33 +0000 Subject: Fixed a changelog export/import problem with tagcache where or characters in a tag could cause the parser fail to import a track statistics correctly. Now line feeds are escaped properly and carriage returns ignored on import. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30021 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index 12aaf08c7b..68775b36f5 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -184,15 +184,7 @@ int fast_readline(int fd, char *buf, int buf_size, void *parameters, if (rc >= 0) buf[pos+rc] = '\0'; - if ( (p = strchr(buf, '\r')) != NULL) - { - *p = '\0'; - next = ++p; - } - else - p = buf; - - if ( (p = strchr(p, '\n')) != NULL) + if ( (p = strchr(buf, '\n')) != NULL) { *p = '\0'; next = ++p; -- cgit v1.2.3