Add last space to xy_str_to_quietcmd()

This commit is contained in:
Aoran Zeng 2023-09-05 09:32:02 +08:00
parent bf79323afa
commit 78869c9dad

6
xy.h
View File

@ -2,7 +2,7 @@
* File : xy.h * File : xy.h
* Authors : Aoran Zeng <ccmywish@qq.com> * Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-28> * Created on : <2023-08-28>
* Last modified : <2023-09-04> * Last modified : <2023-09-05>
* *
* xy: * xy:
* *
@ -273,9 +273,9 @@ xy_str_to_quietcmd (const char* cmd)
{ {
char* ret = NULL; char* ret = NULL;
#ifdef _WIN32 #ifdef _WIN32
ret = xy_2strjoin (cmd, " >nul 2>nul"); ret = xy_2strjoin (cmd, " >nul 2>nul ");
#else #else
ret = xy_2strjoin (cmd, " 1>/dev/null 2>&1"); ret = xy_2strjoin (cmd, " 1>/dev/null 2>&1 ");
#endif #endif
return ret; return ret;
} }