msi: Fix buffer size calculation in build_default_format.

This commit is contained in:
Rob Shearman 2008-02-27 16:47:55 +00:00 committed by Alexandre Julliard
parent 03e466b837
commit 3183ad65d2

View File

@ -346,7 +346,7 @@ static LPWSTR build_default_format(const MSIRECORD* record)
sprintfW(index, fmt_index, i);
str = MSI_RecordGetString(record, i);
len = (str) ? lstrlenW(str) : 0;
len += (sizeof(fmt_null) - 3) + lstrlenW(index);
len += (sizeof(fmt_null)/sizeof(fmt_null[0]) - 3) + lstrlenW(index);
size += len;
if (len > max_len)