diff options
Diffstat (limited to 'plugins/Variables/src/parse_system.cpp')
| -rw-r--r-- | plugins/Variables/src/parse_system.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp index 026007a10f..69053bba1b 100644 --- a/plugins/Variables/src/parse_system.cpp +++ b/plugins/Variables/src/parse_system.cpp @@ -54,7 +54,7 @@ static TCHAR *parseCpuLoad(ARGUMENTSINFO *ai) {  	if ( _tcslen(ai->targv[1]) == 0)
  		szCounter = mir_tstrdup(_T("\\Processor(_Total)\\% Processor Time"));
  	else {
 -		int size = _tcslen(ai->targv[1]) + 32;
 +		int size = (int)_tcslen(ai->targv[1]) + 32;
  		szCounter = (TCHAR *)mir_alloc(size * sizeof(TCHAR));
  		if (szCounter == NULL)
  			return NULL;
  | 
