pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
19c9e82
)
Merge pull request #58 from hspak/master
author
Michael Göhler
<somebody.here@gmx.de>
Thu, 6 Nov 2014 22:44:03 +0000
(23:44 +0100)
committer
Michael Göhler
<somebody.here@gmx.de>
Thu, 6 Nov 2014 22:44:03 +0000
(23:44 +0100)
Fix minor valgrind read error
src/cstring.c
patch
|
blob
|
history
diff --git
a/src/cstring.c
b/src/cstring.c
index
d321260
..
558a786
100644
(file)
--- a/
src/cstring.c
+++ b/
src/cstring.c
@@
-76,7
+76,7
@@
void cstring_strip(cstring_t *self, int pos, int len) {
}
return;
}
- memmove(&self->text[pos], &self->text[pos+len], self->size - pos);
+ memmove(&self->text[pos], &self->text[pos+len], self->size - pos
- len+1
);
self->size -= len;
}