aboutsummaryrefslogtreecommitdiffhomepage
path: root/input_common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-25 05:55:58 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-25 05:55:58 +1000
commitfcc980a5192e96261e78c9aaa423f1067640c4fa (patch)
tree566ec0007950e5a3a37ddb6c0dcf099927568070 /input_common.c
parent0085156a05378be50cc2b37654d678a275f743ed (diff)
Fix compiler warnings
darcs-hash:20050924195558-ac50b-1ad53fa963f71ce5b4aa42490789add2a3d48ab3.gz
Diffstat (limited to 'input_common.c')
-rw-r--r--input_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/input_common.c b/input_common.c
index 0f92a314..920fbbf4 100644
--- a/input_common.c
+++ b/input_common.c
@@ -175,12 +175,16 @@ wchar_t input_common_readch( int timed )
while(1)
{
wint_t b = readb();
+ char bb;
+
int sz;
if( b == R_NULL )
return R_NULL;
- sz = mbrtowc( &res, &b, 1, &state );
+ bb=b;
+
+ sz = mbrtowc( &res, &bb, 1, &state );
switch( sz )
{