Bugfix in Ring buffer (embarrasing)
authorJohn Hodge <[email protected]>
Wed, 2 Mar 2011 05:00:44 +0000 (13:00 +0800)
committerJohn Hodge <[email protected]>
Wed, 2 Mar 2011 05:00:44 +0000 (13:00 +0800)
Kernel/adt.c

index 849b6c2..0f116f3 100644 (file)
@@ -28,6 +28,7 @@ size_t RingBuffer_Read(void *Dest, tRingBuffer *Buffer, size_t Length)
        {
                memcpy(Dest, &Buffer->Data[Buffer->Start], Length);
        }
+       Buffer->Start += Length;
        Buffer->Length -= Length;
        return Length;
 }

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