Ignored \0 in VT_Write, Added out of memory message
authorJohn Hodge <[email protected]>
Tue, 22 Sep 2009 12:25:39 +0000 (20:25 +0800)
committerJohn Hodge <[email protected]>
Tue, 22 Sep 2009 12:25:39 +0000 (20:25 +0800)
Kernel/arch/x86/mm_phys.c
Kernel/drv/vterm.c

index e81c99e..de30a93 100644 (file)
@@ -100,6 +100,7 @@ tPAddr MM_AllocPhys()
        for(a=0;gaSuperBitmap[a]==-1&&a<num;a++);
        if(a == num) {
                RELEASE( &giPhysAlloc );
+               Warning("MM_AllocPhys - OUT OF MEMORY\n");
                return 0;
        }
        for(b=0;gaSuperBitmap[a]&(1<<b);b++);
index 8e97033..4b5a231 100644 (file)
@@ -447,6 +447,7 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch)
        
        switch(Ch)
        {
+       case 0: return; // Ignore NULL byte
        case '\n':
                Term->WritePos += Term->Width;
        case '\r':

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