projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b1773
)
gui: Replace also \r and \f by spaces.
author
Andre Noll
<maan@systemlinux.org>
Sun, 4 Jul 2010 21:17:41 +0000
(23:17 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 4 Jul 2010 21:17:41 +0000
(23:17 +0200)
id3 comments might contain these characters which can mess up the curses output.
gui.c
patch
|
blob
|
history
diff --git
a/gui.c
b/gui.c
index
dbe0a19
..
865ed65
100644
(file)
--- a/
gui.c
+++ b/
gui.c
@@
-294,9
+294,9
@@
static int align_str(WINDOW* win, char *str, unsigned int len,
str[len] = '\0';
num = 0;
}
- /* replace
newline
s by spaces */
+ /* replace
control character
s by spaces */
for (i = 0; i < len && str[i]; i++) {
- if (str[i] == '\n')
+ if (str[i] == '\n'
|| str[i] == '\r' || str[i] == '\f'
)
str[i] = ' ';
}
if (align == LEFT) {