aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-08-08 17:05:09 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-08-08 17:05:09 +0000
commit7a137d8b52f8258b6367aafc284a62124873071a (patch)
tree10822ba048b0bee43c9424d0aa21b6f424362eee /src
parent6fa01da4abe8da8e714791a41ade8b6201dccbca (diff)
downloadmpd-7a137d8b52f8258b6367aafc284a62124873071a.tar.gz
mpd-7a137d8b52f8258b6367aafc284a62124873071a.tar.xz
mpd-7a137d8b52f8258b6367aafc284a62124873071a.zip
fix a bug that doubled empty lines when loading lyrics from hd
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4601 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/screen_lyrics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index c3c98dcee..8a05ccc78 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -328,7 +328,7 @@ int get_lyr_hd(char *artist, char *title)
{
n = getline(line, &n, lyr_file);
if( n < 1 || *line == NULL || feof(lyr_file) != 0 ) return 0;
- add_text_line(&lyr_text, *line, n+1);
+ add_text_line(&lyr_text, *line, n);
free(*line);
*line = NULL; n = 0;
}