From b0ed746267f7d510037825d1a818a4c48882c3c0 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Mon, 28 Nov 2011 22:39:09 +1100 Subject: [PATCH] Watch uses unsigned chars to be 8bit clean Taken from the Debian patch watch_8bitchar --- watch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch.c b/watch.c index 1e050dc6..af7d2620 100644 --- a/watch.c +++ b/watch.c @@ -296,9 +296,9 @@ main(int argc, char *argv[]) move(y, x); if (option_differences) { chtype oldch = inch(); - char oldc = oldch & A_CHARTEXT; + unsigned char oldc = oldch & A_CHARTEXT; attr = !first_screen - && ((char)c != oldc + && ((unsigned char)c != oldc || (option_differences_cumulative && (oldch & A_ATTRIBUTES)));