summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fa01da)
raw | patch | inline | side by side (parent: 6fa01da)
author | Andreas Obergrusberger <tradiaz@yahoo.de> | |
Tue, 8 Aug 2006 17:05:09 +0000 (17:05 +0000) | ||
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | |
Tue, 8 Aug 2006 17:05:09 +0000 (17:05 +0000) |
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4601 09075e82-0dd4-0310-85a5-a0d7c8717e4f
ChangeLog | patch | blob | history | |
src/screen_lyrics.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 19e3e931908082d218dac7cdc2340d8f7a56418c..b526d9c2ef603933621b1464ac9aac1235201f88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-08.8 Andreas Obergrusberger <tradiaz@yahoo.de>
+ * Avuton fixed some warning
+ * fixed a bug that doubled empty lines
+ when loading lyrics from hd
+
2006-08-7 Andreas Obergrusberger <tradiaz@yahoo.de>
* bugfixes in lyrics screen
* ncmpc can now load and save lyrics
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index c3c98dcee9fd9d95d4ba69df1c75f7648a72f07d..8a05ccc788aeec51169a9f05cba136614a8c7338 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
{
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;
}