skywind3000 / PyStand

:rocket: Python Standalone Deploy Environment !!
MIT License
641 stars 75 forks source link

remove unnecessary null terminator #33

Closed myd7349 closed 1 year ago

myd7349 commented 1 year ago

见:https://github.com/skywind3000/PyStand/pull/32#issuecomment-1374779103

myd7349 commented 1 year ago

之所以多加了 #include <string.h> 是考虑到 PyStand.hPyStand.cpp 都没直接包含该头文件(虽然没加也没触发编译错误,这可能是该头文件被其它头文件间接包含了)。

鉴于 PyStand.cpp 中使用到了 strlen、wcslen 等函数,加上这个头文件包含更稳妥。