Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

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

Open
santoshk opened this issue Feb 15, 2012 · 0 comments

Comments

@santoshk
Copy link

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 );
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant