|Summary:||64-bit problem with varargs termination|
|Product:||fontconfig||Reporter:||Owen Taylor <otaylor>|
|Component:||library||Assignee:||Keith Packard <keithp>|
|Status:||RESOLVED FIXED||QA Contact:|
|i915 platform:||i915 features:|
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.