Henri Verbeet : usp10: Pass the correct buffer size to lstrcpynA() in load_GSUB_feature().
Alexandre Julliard
julliard at winehq.org
Fri Aug 20 10:19:10 CDT 2010
Module: wine
Branch: master
Commit: 7200f91c067debffb6ad10c463dd53f3f0498e4c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7200f91c067debffb6ad10c463dd53f3f0498e4c
Author: Henri Verbeet <hverbeet at 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;
}
More information about the wine-cvs
mailing list