aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-11-27 20:53:58 -0500
committerClyne Sullivan <clyne@bitgloo.com>2024-11-27 20:53:58 -0500
commit39c195cc40397d522f767c4692329a7d1e230f22 (patch)
treedbdddde202f3a388b2fe414837082af43ddc553f
parentc4ec3bea1962ae16284a6a2fb9b91e7f7ed1e136 (diff)
zero dot buf
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
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 << ' ';
});