aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorBhavi Dhingra <b.dhingra@samsung.com>2015-06-04 19:07:12 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:29 +0200
commita402ed0162562b43a945d9a90b406c54c87c72b6 (patch)
treeba79b4d2e273de5af0fe8af6535d60ff509d0ac9 /nx-X11
parent73f2d66e0ec90ac5140e5015ca511f914016786e (diff)
downloadnx-libs-a402ed0162562b43a945d9a90b406c54c87c72b6.tar.gz
nx-libs-a402ed0162562b43a945d9a90b406c54c87c72b6.tar.bz2
nx-libs-a402ed0162562b43a945d9a90b406c54c87c72b6.zip
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> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/lib/X11/omGeneric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/omGeneric.c b/nx-X11/lib/X11/omGeneric.c
index 91f4280d0..c790bbc44 100644
--- a/nx-X11/lib/X11/omGeneric.c
+++ b/nx-X11/lib/X11/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];