Index: trunk/i386/boot2/gui.c =================================================================== --- trunk/i386/boot2/gui.c (revision 1410) +++ trunk/i386/boot2/gui.c (revision 1411) @@ -1474,8 +1474,9 @@ } } -void showInfoBox(char *title, char *text) +void showInfoBox(char *title, char *text_orig) { + char* text; int i, key, lines, visiblelines; int currentline=0; @@ -1485,6 +1486,11 @@ if( !title || !text ) return; + // Create a copy so that we don't mangle the original + text = malloc(strlen(text_orig) + 1); + strcpy(text, text_orig); + + position_t pos_title = pos ( gui.infobox.vborder, gui.infobox.vborder ); // calculate number of lines in the title