Fixed kernel segfault in VTerm (referenced possible NULL value) rel0.06
authorJohn Hodge <[email protected]>
Sun, 31 Oct 2010 12:35:05 +0000 (20:35 +0800)
committerJohn Hodge <[email protected]>
Sun, 31 Oct 2010 12:35:05 +0000 (20:35 +0800)
Kernel/drv/vterm.c

index 720e76b..252f292 100644 (file)
@@ -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);

UCC git Repository :: git.ucc.asn.au