diff --git a/cucul/canvas.c b/cucul/canvas.c index d57b69a..c74bb4f 100644 --- a/cucul/canvas.c +++ b/cucul/canvas.c @@ -65,7 +65,7 @@ int cucul_putchar(cucul_canvas_t *cv, int x, int y, unsigned long int ch) if(x < 0 || x >= (int)cv->width || y < 0 || y >= (int)cv->height) return 0; - if((unsigned char)ch < 0x20) + if(ch < 0x20) ch = 0x20; cv->chars[x + y * cv->width] = ch;