[PATCH] vc: Use correct size on buffer copy in vc_resize
authorAntonino A. Daplas <adaplas@gmail.com>
Thu, 15 Sep 2005 13:34:33 +0000 (21:34 +0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 15 Sep 2005 15:24:09 +0000 (08:24 -0700)
In the unlikely case of the new screen width much wider then the old,
use (old_row_size * new_rows) instead of new_screen_size to prevent a
buffer overrun during the copy.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found