Commit a402ed01 authored by Bhavi Dhingra's avatar Bhavi Dhingra Committed by Ulrich Sibiller

omGeneric.c: Correct the parameter usage of sizeof

Incorrect parameter usage with sizeof. Earlier passed argument FontData will be 4 bytes always as its a pointer hence the change is needed and FontDataRec should be used for memset. Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 73f2d66e
......@@ -105,7 +105,7 @@ init_fontdata(
if(fd == (FontData) NULL)
return False;
memset(fd, 0x00, sizeof(FontData) * font_data_count);
memset(fd, 0x00, sizeof(FontDataRec) * font_data_count);
for(i = 0 ; i < font_data_count ; i++)
fd[i] = font_data[i];
......
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