From: John Hodge Date: Sun, 31 Oct 2010 12:35:05 +0000 (+0800) Subject: Fixed kernel segfault in VTerm (referenced possible NULL value) X-Git-Tag: rel0.06 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=34dbc845a86903c0b531216b166a4d596255bc9a;p=tpg%2Facess2.git Fixed kernel segfault in VTerm (referenced possible NULL value) --- diff --git a/Kernel/drv/vterm.c b/Kernel/drv/vterm.c index 720e76b0..252f2924 100644 --- a/Kernel/drv/vterm.c +++ b/Kernel/drv/vterm.c @@ -623,7 +623,7 @@ int VT_Terminal_IOCtl(tVFS_Node *Node, int Id, void *Data) if( term->NewHeight ) ret = term->NewHeight; else if( term->Mode == TERM_MODE_TEXT ) - ret = term->TextHeight = *iData; + ret = term->TextHeight; else ret = term->Height; LEAVE('i', ret);