additional space on command line gets inserted if the Agrument list is empty
Opened this issue · 0 comments
santoshk commented
The space should not be inserted if szArguments is empty. in remcom.cpp.
if ( !IsCmdLineParameter(_T("c")) )
_stprintf( pMsg->szCommand, _T("\"%s\" %s"), lpszCommandExe, szArguments );
else
{
TCHAR drive[_MAX_DRIVE];
TCHAR dir[_MAX_DIR];
TCHAR fname[_MAX_FNAME];
TCHAR ext[_MAX_EXT];
_tsplitpath( lpszCommandExe, drive, dir, fname, ext );
_stprintf( pMsg->szCommand, _T("%s%s %s"), fname, ext, szArguments );
}