Author: khornicek
Date: Wed Sep 18 16:36:16 2013
New Revision: 60198
URL:
http://svn.reactos.org/svn/reactos?rev=60198&view=rev
Log:
[RAPPS]
Mind the null terminator. Spotted by dmex.
ROSAPPS-237 #resolve #comment Fixed in r60198. Thank you.
Modified:
trunk/reactos/base/applications/rapps/richedit.c
Modified: trunk/reactos/base/applications/rapps/richedit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/ri…
==============================================================================
--- trunk/reactos/base/applications/rapps/richedit.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/richedit.c [iso-8859-1] Wed Sep 18 16:36:16
2013
@@ -25,7 +25,7 @@
pLink = (PWSTR) HeapAlloc(GetProcessHeap(),
0,
(max(Link->chrg.cpMin, Link->chrg.cpMax) -
- min(Link->chrg.cpMin,
Link->chrg.cpMax))*sizeof(WCHAR));
+ min(Link->chrg.cpMin, Link->chrg.cpMax) + 1)
* sizeof(WCHAR));
if (!pLink)
{
/* TODO: Error message */