RemCom icon indicating copy to clipboard operation
RemCom copied to clipboard

additional space on command line gets inserted if the Agrument list is empty

Open santoshk opened this issue 13 years ago • 0 comments

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 );
}

santoshk avatar Feb 15 '12 07:02 santoshk