id3 comments might contain these characters which can mess up the curses output.
str[len] = '\0';
num = 0;
}
str[len] = '\0';
num = 0;
}
- /* replace newlines by spaces */
+ /* replace control characters by spaces */
for (i = 0; i < len && str[i]; i++) {
for (i = 0; i < len && str[i]; i++) {
+ if (str[i] == '\n' || str[i] == '\r' || str[i] == '\f')
str[i] = ' ';
}
if (align == LEFT) {
str[i] = ' ';
}
if (align == LEFT) {