Chameleon

Chameleon Commit Details

Date:2011-08-17 15:48:33 (8 years 4 days ago)
Author:Evan Lojewski
Commit:1420
Parents: 1419
Message:cause showTextBuffer not to manlge the input buffer.
Changes:
M/trunk/i386/boot2/options.c

File differences

trunk/i386/boot2/options.c
13371337
13381338
13391339
1340
1340
13411341
13421342
1343
13431344
13441345
13451346
13461347
13471348
1348
1349
13491350
13501351
1352
1353
1354
1355
1356
13511357
13521358
13531359
//==========================================================================
// Load the help file and display the file contents on the screen.
void showTextBuffer(char *buf, int size)
void showTextBuffer(char *buf_orig, int size)
{
char*bp;
char* buf;
intline;
intline_offset;
intc;
if (bootArgs->Video.v_display != VGA_TEXT_MODE) {
showInfoBox( "Press q to continue, space for next page.\n",buf );
showInfoBox( "Press q to continue, space for next page.\n",buf_orig );
return;
}
// Create a copy so that we don't mangle the original
buf = malloc(size + 1);
memcpy(buf, buf_orig, size);
bp = buf;
while (size-- > 0) {

Archive Download the corresponding diff file

Revision: 1420