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