From 6d9c1c8396ef374dce59d4c95199d0155a6fdfa3 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Fri, 1 Mar 2024 00:34:19 +0800 Subject: tree-wide: fix uaf bugs --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 4930b1c..3410f37 100644 --- a/src/main.c +++ b/src/main.c @@ -66,6 +66,7 @@ int main(void) { if (cookie_datum.ok) { printf("[tomlc99] Found cookie string in config.toml, applying...\n"); cookie = cookie_datum.u.s; + DEBUG_PRINT("Cookie: %s\n", cookie); } } } @@ -189,5 +190,5 @@ int main(void) { curl_cleanup(&stat); nk_glfw3_shutdown(&glfw); glfwTerminate(); - return 0; + exit(0); } -- cgit v1.2.3