mirror of
https://github.com/sigmasternchen/libparcival
synced 2025-03-15 11:58:53 +00:00
fixed off-by-one error when opening stream
This commit is contained in:
parent
a65f394284
commit
30c62e03b8
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ char* renderTemplateStr(const char* name, ...) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE* out = fmemopen(result, length, "w");
|
FILE* out = fmemopen(result, length + 1, "w");
|
||||||
if (out == NULL) {
|
if (out == NULL) {
|
||||||
va_end(argptr2);
|
va_end(argptr2);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue