Module: wine Branch: master Commit: 7200f91c067debffb6ad10c463dd53f3f0498e4c URL: http://source.winehq.org/git/wine.git/?a=commit;h=7200f91c067debffb6ad10c463...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Aug 19 18:57:43 2010 +0200
usp10: Pass the correct buffer size to lstrcpynA() in load_GSUB_feature().
---
dlls/usp10/shape.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index df84b1f..cc0a3c0 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; }