From a28a5b6767149f79b2f4f5c19acea025dee91533 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 22 Sep 2024 06:24:07 +0000 Subject: [PATCH] Fix bug --- ugoira/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ugoira/src/main.cpp b/ugoira/src/main.cpp index e8fd5db..69c7e52 100644 --- a/ugoira/src/main.cpp +++ b/ugoira/src/main.cpp @@ -254,6 +254,7 @@ int main(int argc, char* argv[]) { return UGOIRA_OPEN_FILE; } fileop::fclose(f); + buf[size] = 0; rapidjson::Document d; d.Parse(buf); free(buf);