regedit: Tighten a buffer size calculation.

This commit is contained in:
Francois Gouget 2008-11-12 11:29:20 +01:00 committed by Alexandre Julliard
parent d1d3db4183
commit 126ffb1f8a
1 changed files with 1 additions and 1 deletions

View File

@ -1052,7 +1052,7 @@ static void export_hkey(FILE *file, HKEY key,
{
WCHAR format[] = {'d','w','o','r','d',':','%','0','8','x','\n',0};
line_len += 20;
line_len += 15;
REGPROC_resize_char_buffer(line_buf, line_buf_size, line_len);
wsprintfW(*line_buf + line_pos, format, *((DWORD *)*val_buf));
break;