diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/src/main.cpp b/src/main.cpp index 53ac102..5460d8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -13,4 +14,4 @@ int main() loadMenu(); return 0; -} \ No newline at end of file +} diff --git a/src/utils.cpp b/src/utils.cpp index 6667f71..b25a3a6 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -27,8 +27,7 @@ void loadEnv() { if (std::getline(lineStream, key, '=')) { std::string value; if (std::getline(lineStream, value)) { - std::string envVar = key + "=" + value; - putenv(envVar.c_str()); + setenv(key.c_str(), value.c_str(), 1); } } }