summaryrefslogtreecommitdiff
path: root/modules/om
diff options
context:
space:
mode:
authorBhavi Dhingra <b.dhingra@samsung.com>2015-06-04 19:07:12 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-06-04 19:08:31 -0700
commitf0286b2770ece10aef5e2e8c004260217f12fd25 (patch)
tree6daf2a5e84b8f4e3b65ea9d4d04f5d562812de8d /modules/om
parent47da70d75f9e48e800719c0db752f9ccd2d77aea (diff)
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: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'modules/om')
-rw-r--r--modules/om/generic/omGeneric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic/omGeneric.c
index a835f00d..53ca75c0 100644
--- a/modules/om/generic/omGeneric.c
+++ b/modules/om/generic/omGeneric.c
@@ -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];