projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b735ed
)
stupid error.
author
Pierre Habouzit
<madcoder@debian.org>
Mon, 14 May 2007 14:35:08 +0000
(16:35 +0200)
committer
Pierre Habouzit
<madcoder@debian.org>
Mon, 14 May 2007 14:35:08 +0000
(16:35 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-ui/menu.c
patch
|
blob
|
history
diff --git
a/lib-ui/menu.c
b/lib-ui/menu.c
index
19ab550
..
01f0ab8
100644
(file)
--- a/
lib-ui/menu.c
+++ b/
lib-ui/menu.c
@@
-117,7
+117,7
@@
static void print_enriched_string (int attr, unsigned char *s, int do_color)
if (do_color)
attrset (attr);
}
- else if ((k = mbrtowc (&wc, (char *) s, n, &mbstate))
> 0
) {
+ else if ((k = mbrtowc (&wc, (char *) s, n, &mbstate))
!= (size_t)-1
) {
addnstr ((char *) s, k);
s += k, n -= k;
}