From 7200f91c067debffb6ad10c463dd53f3f0498e4c Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 19 Aug 2010 18:57:43 +0200 Subject: [PATCH] usp10: Pass the correct buffer size to lstrcpynA() in load_GSUB_feature(). --- dlls/usp10/shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index df84b1fd831..cc0a3c07b86 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -780,7 +780,7 @@ static LPCVOID load_GSUB_feature(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc else psc->features = HeapAlloc(GetProcessHeap(), 0, psc->feature_count * sizeof(LoadedFeature)); - lstrcpynA(psc->features[psc->feature_count - 1].tag,feat,4); + lstrcpynA(psc->features[psc->feature_count - 1].tag, feat, 5); psc->features[psc->feature_count - 1].feature = feature; return feature; }