diff options
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus/options.cpp')
| -rw-r--r-- | plugins/StatusPlugins/StartupStatus/options.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp index 3e78a0230c..ad68999701 100644 --- a/plugins/StatusPlugins/StartupStatus/options.cpp +++ b/plugins/StatusPlugins/StartupStatus/options.cpp @@ -115,7 +115,7 @@ static char* GetCMDL(TSettingsList& protoSettings)  	GetModuleFileNameA(NULL, path, MAX_PATH);
  	char* cmdl = ( char* )malloc(strlen(path) + 4);
 -	_snprintf(cmdl, strlen(path) + 4, "\"%s\" ", path);
 +	mir_snprintf(cmdl, strlen(path) + 4, "\"%s\" ", path);
  	char* args = GetCMDLArguments(protoSettings);
  	if ( args ) {
 @@ -176,7 +176,7 @@ HRESULT CreateLink(TSettingsList& protoSettings)  	if (MyGetSpecialFolderPath(NULL, savePath, 0x10, FALSE))
  		_tcscat(savePath, _T(SHORTCUT_FILENAME));
  	else
 -		_stprintf(savePath, _T(".\\%s"), _T(SHORTCUT_FILENAME));
 +		mir_sntprintf(savePath, SIZEOF(savePath), _T(".\\%s"), _T(SHORTCUT_FILENAME));
  	// Get a pointer to the IShellLink interface.
  	hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, ( void** )&psl);
  | 
