projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enforce maximum amount of bytes sent/received on meta-connections.
[tinc]
/
src
/
dropin.c
diff --git
a/src/dropin.c
b/src/dropin.c
index
fe3b7ef
..
c7b558a
100644
(file)
--- a/
src/dropin.c
+++ b/
src/dropin.c
@@
-106,6
+106,7
@@
int vasprintf(char **buf, const char *fmt, va_list ap) {
va_copy(aq, ap);
status = vsnprintf(*buf, len, fmt, aq);
+ buf[len - 1] = 0;
va_end(aq);
if(status >= 0)