Thanks to Michael for the heads-up.
for (int i = 0; i < sizeof(crash_text) / sizeof(char*); i++) {
draw_text(crash_text[i], strlen(crash_text[i]), false, pixmap, pixmap_gc,
for (int i = 0; i < sizeof(crash_text) / sizeof(char*); i++) {
draw_text(crash_text[i], strlen(crash_text[i]), false, pixmap, pixmap_gc,
- 8, 3 + (i - 1) * font_height, width - 16);
+ 8, 5 + i * font_height, width - 16);
}
/* Copy the contents of the pixmap to the real window */
}
/* Copy the contents of the pixmap to the real window */