From 47ee6e4fbab5d1758a1eb11e2e15abfcf7aecb86 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sat, 28 Sep 2013 18:51:53 +0330 Subject: [PATCH] fbpad: cast the return value to unsigned char in readchar() --- fbpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbpad.c b/fbpad.c index 0826052..892909c 100644 --- a/fbpad.c +++ b/fbpad.c @@ -43,7 +43,7 @@ static int readchar(void) { char b; if (read(0, &b, 1) > 0) - return (int) b; + return (unsigned char) b; return -1; } -- 2.11.4.GIT