mirror of
https://github.com/sigmasternchen/libparcival
synced 2025-03-15 03:48:55 +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;
|
||||
}
|
||||
|
||||
FILE* out = fmemopen(result, length, "w");
|
||||
FILE* out = fmemopen(result, length + 1, "w");
|
||||
if (out == NULL) {
|
||||
va_end(argptr2);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue