From fee7fa62cc511bde079221bd7d485e39454db460 Mon Sep 17 00:00:00 2001 From: Ian Pilcher Date: Wed, 6 Jun 2001 20:20:37 +0000 Subject: [PATCH] Removed incorrect string length calculation. --- dlls/wineps/truetype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wineps/truetype.c b/dlls/wineps/truetype.c index 9d6296d2218..c54c7a240dc 100644 --- a/dlls/wineps/truetype.c +++ b/dlls/wineps/truetype.c @@ -103,8 +103,8 @@ static BOOL FindCharMap(AFM *afm) } else { - afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0, - sizeof("WindowsUnknown") + 1 + charmap->encoding_id / 10); + afm->EncodingScheme = HeapAlloc(PSDRV_Heap, 0, /* encoding_id */ + sizeof("WindowsUnknown65535")); /* is a UShort */ if (afm->EncodingScheme == NULL) return FALSE;