From 952ff236ffe9506037368d9c45437713d0d53427 Mon Sep 17 00:00:00 2001 From: ado Date: Sat, 5 Aug 2023 20:48:01 +0200 Subject: [PATCH] Fix header generation on empty line buffer --- include/ss/parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ss/parser.hpp b/include/ss/parser.hpp index e286e7c..7656762 100644 --- a/include/ss/parser.hpp +++ b/include/ss/parser.hpp @@ -832,7 +832,7 @@ private: } std::string get_buffer() { - return std::string{next_line_buffer_}; + return std::string{next_line_buffer_, next_line_buffer_size_}; } ////////////////