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