From f34bd18b9909edcb0cbdbee868e84bedcdde4a2f Mon Sep 17 00:00:00 2001 From: Eugene Lazutkin Date: Wed, 23 Aug 2023 14:54:35 -0500 Subject: [PATCH] Added a check for zero. --- lib/replace.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/replace.cc b/lib/replace.cc index a3c5e68..5eaeb8f 100644 --- a/lib/replace.cc +++ b/lib/replace.cc @@ -141,7 +141,9 @@ inline std::string replace(const char *data, size_t size, const std::vector