From: Clyne Sullivan Date: Thu, 28 Nov 2024 01:53:58 +0000 (-0500) Subject: zero dot buf X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=39c195cc40397d522f767c4692329a7d1e230f22;p=clyne%2Fsforth.git zero dot buf --- 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 << ' '; });