diff -r 00e88487a654 -r 591473851c95 src/buffer.c --- a/src/buffer.c Mon Nov 20 18:06:32 2017 +0100 +++ b/src/buffer.c Tue Jan 02 17:00:21 2018 +0100 @@ -225,7 +225,7 @@ if (ucx_buffer_eof(buffer)) { return EOF; } else { - int c = buffer->space[buffer->pos]; + int c = ((unsigned char*)buffer->space)[buffer->pos]; buffer->pos++; return c; }