- implemented frontend
- namespaced Core
- imported qdevicewatcher
- fixed bug in logging (more like in misc)
This commit is contained in:
zhupengfei
2019-08-28 19:16:05 +08:00
parent fd5106759a
commit 7df0b63a1e
22 changed files with 351 additions and 166 deletions
+2 -2
View File
@@ -3,11 +3,11 @@
// Refer to the license.txt file included.
#include <cstddef>
#include <cstring>
#ifdef _WIN32
#include <windows.h>
#else
#include <cerrno>
#include <cstring>
#endif
#include "common/common_funcs.h"
@@ -27,5 +27,5 @@ std::string GetLastErrorMsg() {
strerror_r(errno, err_str, buff_size);
#endif
return std::string(err_str, buff_size);
return std::string(err_str, strnlen(err_str, buff_size));
}