Fixed out of bound array access.

This commit is contained in:
Armin Novak 2015-06-26 09:50:21 +02:00
parent 91353f00a8
commit 015754633d
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ int cliprdr_temp_directory(CliprdrClientContext* context, CLIPRDR_TEMP_DIRECTORY
if (length > 520)
length = 520;
Stream_Write(s, tempDirectory->szTempDir, length * 2);
Stream_Write(s, wszTempDir, length * 2);
Stream_Zero(s, (520 - length) * 2);
free(wszTempDir);