printing: use bigger on-stack buffer
authorJens Axboe <axboe@kernel.dk>
Wed, 16 Aug 2017 15:08:27 +0000 (09:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Aug 2017 15:08:27 +0000 (09:08 -0600)
We might be writing more than 20 bytes, bump up the size to
be safe.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
printing.c

index 4dcc986..b58996b 100644 (file)
@@ -31,7 +31,7 @@ static void results_draw_page(GtkPrintOperation *operation,
                              gpointer data)
 {
        cairo_t *cr;
-       char str[20];
+       char str[32];
        double x, y;
 
        cr = gtk_print_context_get_cairo_context(context);