Bug 103 - 64-bit problem with varargs termination
Summary: 64-bit problem with varargs termination
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.0
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-31 15:01 UTC by Owen Taylor
Modified: 2003-08-11 02:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Owen Taylor 2003-07-31 15:01:26 UTC
You can't terminate char * varargs with 0, since it will
be the wrong width on 64-bit platforms. You need to use
(char *)0 or NULL. (I'm not sure NULL, strictly speaking,
is guaranteed to work by the C standard, but practically 
speaking it works universally and will continue to work 
universally because much software depends on it.)

In fc-list.c:

 os = FcObjectSetBuild (FC_FAMILY, FC_STYLE, 0);

Seems to be the only instance in fontconfig or Xft.
Comment 1 Keith Packard 2003-08-11 19:06:49 UTC
Thanks for finding this one.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.