Kernel/VTerm - Fixed little bugs exposed with stdio buffering
authorJohn Hodge <[email protected]>
Sun, 31 Mar 2013 10:09:06 +0000 (18:09 +0800)
committerJohn Hodge <[email protected]>
Sun, 31 Mar 2013 10:09:06 +0000 (18:09 +0800)
KernelLand/Kernel/drv/vterm.c
KernelLand/Kernel/drv/vterm_termbuf.c

index 3ff1a53..aed9258 100644 (file)
@@ -516,7 +516,7 @@ size_t VT_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer
                break;
        }
        
-       return 0;
+       return Length;
 }
 
 /**
index 89511cc..e03302a 100644 (file)
@@ -24,7 +24,7 @@ void VT_int_PutString(tVTerm *Term, const Uint8 *Buffer, Uint Count)
                int ret = VT_int_ParseEscape(Term, (const char*)&Buffer[i], Count-i);
                if( ret > 0 )
                {
-                       i += ret;
+                       i += ret-1;
                        continue;
                }
                

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