From acd6160248171846f2f48fcd0730e99f8cdc5963 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Fri, 11 May 2007 23:15:53 +0000 Subject: [PATCH] Do not write beyond the buffer. svn path=/trunk/; revision=26708 --- reactos/base/applications/regedit/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/base/applications/regedit/security.c b/reactos/base/applications/regedit/security.c index 440a017a95f..5d0d8633ef1 100644 --- a/reactos/base/applications/regedit/security.c +++ b/reactos/base/applications/regedit/security.c @@ -763,7 +763,7 @@ CRegKeySecurity_fnConstructor(LPTSTR lpRegKey, obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, FIELD_OFFSET(CRegKeySecurity, - szRegKey[_tcslen(lpRegKey)])); + szRegKey[_tcslen(lpRegKey)+1])); if (obj != NULL) { obj->ref = 1;