Commit fee7fa62 authored by Ian Pilcher's avatar Ian Pilcher Committed by Alexandre Julliard

Removed incorrect string length calculation.

parent db4aae22
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment