git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f09121
)
Bugfix in Ring buffer (embarrasing)
author
John Hodge
<
[email protected]
>
Wed, 2 Mar 2011 05:00:44 +0000
(13:00 +0800)
committer
John Hodge
<
[email protected]
>
Wed, 2 Mar 2011 05:00:44 +0000
(13:00 +0800)
Kernel/adt.c
patch
|
blob
|
history
diff --git
a/Kernel/adt.c
b/Kernel/adt.c
index
849b6c2
..
0f116f3
100644
(file)
--- a/
Kernel/adt.c
+++ b/
Kernel/adt.c
@@
-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