From 39c195cc40397d522f767c4692329a7d1e230f22 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 27 Nov 2024 20:53:58 -0500 Subject: [PATCH] zero dot buf --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 1b67542..16de440 100644 --- a/main.cpp +++ b/main.cpp @@ -33,7 +33,7 @@ int main(int argc, const char *argv[]) forth::initialize<&fth>(dict.end()); fth->add(".", [](auto) { - char buf[32]; + char buf[32] = {}; std::to_chars(buf, buf + sizeof(buf), fth->pop(), fth->base); std::cout << buf << ' '; });