Commit 6664538f authored by Bernd Machenschalk's avatar Bernd Machenschalk Committed by Christian Beer

E@H: fix setting LAL_DEBUG_LEVEL for WIN32

Original: 2bd45c987cb756ffd5a43bada83b0237063c2529
parent 70449aa4
......@@ -1585,8 +1585,10 @@ int main(int argc, char**argv) {
} /* if DEBUG_LEVEL_FNAME file found */
{
char buf[8];
if (setenv("LAL_DEBUG_LEVEL", myultoa(eah_lal_debug_level, buf, 8), 1)) {
char buf[16+8];
strcpy(buf, "LAL_DEBUG_LEVEL=");
myultoa(eah_lal_debug_level, buf+16, 8);
if (putenv(buf)) {
LogPrintf(LOG_CRITICAL,"ERROR: couldn't set LAL_DEBUG_LEVEL env: %d\n", errno);
}
}
......
......@@ -28,6 +28,7 @@
/* some more functions with just different names */
#define fsync _commit
#define putenv _putenv
/* functions actually implemented in win_lib.cpp */
#ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment