[PATCH 6/9] regedit: Tighten a buffer size calculation.
Francois Gouget
fgouget at codeweavers.com
Wed Nov 12 04:29:20 CST 2008
---
programs/regedit/regproc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index a532552..2a0a13f 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -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;
--
1.5.6.5
More information about the wine-patches
mailing list