View | Details | Raw Unified | Return to bug 64171
Collapse All | Expand All

(-)linux-2.4.29/drivers/char/console.c.xx (+6 lines)
Lines 705-710 Link Here
705
	return 0;
705
	return 0;
706
}
706
}
707
707
708
#define VC_RESIZE_MAXCOL (32767)
709
#define VC_RESIZE_MAXROW (32767)
710
708
/*
711
/*
709
 * Change # of rows and columns (0 means unchanged/the size of fg_console)
712
 * Change # of rows and columns (0 means unchanged/the size of fg_console)
710
 * [this is to be used together with some user program
713
 * [this is to be used together with some user program
Lines 717-722 Link Here
717
	unsigned int currcons = fg_console, i;
720
	unsigned int currcons = fg_console, i;
718
	unsigned short *newscreens[MAX_NR_CONSOLES];
721
	unsigned short *newscreens[MAX_NR_CONSOLES];
719
722
723
       if (cols > VC_RESIZE_MAXCOL || lines > VC_RESIZE_MAXROW)
724
               return -EINVAL;
725
720
	cc = (cols ? cols : video_num_columns);
726
	cc = (cols ? cols : video_num_columns);
721
	ll = (lines ? lines : video_num_lines);
727
	ll = (lines ? lines : video_num_lines);
722
	sr = cc << 1;
728
	sr = cc << 1;

Return to bug 64171