From db6b7d1c89ebfe0beeb1b44436089fbca977fe6f Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sat, 16 Nov 2024 14:41:38 +0100 Subject: [PATCH] Damn you WIN32 --- src/httpserver_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpserver_extension.cpp b/src/httpserver_extension.cpp index 349a986..8c3e340 100644 --- a/src/httpserver_extension.cpp +++ b/src/httpserver_extension.cpp @@ -66,7 +66,7 @@ static void SetEnvValue(DataChunk &args, ExpressionState &state, Vector &result, throw std::invalid_argument(value_type + " cannot be empty."); } #ifdef _WIN32 - _putenv_s(name.c_str(), value.GetString().c_str()); + _putenv_s(name.GetString().c_str(), value.GetString().c_str()); #else setenv(var_name.c_str(), value.GetString().c_str(), true); #endif