projects
/
ecparse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0eb955
)
move all remaining data
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sat, 5 Jul 2008 20:50:11 +0000
(22:50 +0200)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sat, 5 Jul 2008 20:50:11 +0000
(22:50 +0200)
GrowingBuffer.cpp
patch
|
blob
|
history
diff --git
a/GrowingBuffer.cpp
b/GrowingBuffer.cpp
index
3de12fc
..
2d26251
100644
(file)
--- a/
GrowingBuffer.cpp
+++ b/
GrowingBuffer.cpp
@@
-73,7
+73,7
@@
void GrowingBuffer::write(const void* buffer, size_t length) {
void GrowingBuffer::cut() {
GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] discarding %d bytes, %d bytes remaining.\n", __FILE__, __LINE__, position, limit - position);
- mem
cpy(data, (char*) data + position, position
);
+ mem
move(data, (char*) data + position, limit
);
limit -= position;
position = 0;
}