Commit 126ffb1f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

regedit: Tighten a buffer size calculation.

parent d1d3db41
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment