diff options
author | marcus <marcus@FreeBSD.org> | 2003-04-07 04:37:06 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-04-07 04:37:06 +0800 |
commit | 628b04bacb5cd9409026d346694d22f1807bacd9 (patch) | |
tree | ce0c67e6c0b2ceee44d8739bb76a2ad95c3aec7d /x11-fonts/libXft/files | |
parent | 63c0c2d6d3ea6a367f1a43fc0b0cc167959ba0c9 (diff) | |
download | freebsd-ports-gnome-628b04bacb5cd9409026d346694d22f1807bacd9.tar.gz freebsd-ports-gnome-628b04bacb5cd9409026d346694d22f1807bacd9.tar.zst freebsd-ports-gnome-628b04bacb5cd9409026d346694d22f1807bacd9.zip |
Fix a segfault that can occur when mixing RENDER and non-RENDER fonts.
Obtained from: XFree86 CVS
Diffstat (limited to 'x11-fonts/libXft/files')
-rw-r--r-- | x11-fonts/libXft/files/patch-xftdraw.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-fonts/libXft/files/patch-xftdraw.c b/x11-fonts/libXft/files/patch-xftdraw.c new file mode 100644 index 000000000000..564de234962b --- /dev/null +++ b/x11-fonts/libXft/files/patch-xftdraw.c @@ -0,0 +1,20 @@ +--- xftdraw.c 2002/10/11 17:53:02 1.25 ++++ xftdraw.c 2003/04/03 22:25:50 1.26 +@@ -724,7 +724,7 @@ XftDrawGlyphFontSpec (XftDraw *draw, + { + XftGlyphFontSpecRender (draw->dpy, _XftDrawOp (draw, color), + src, draw->render.pict, +- 0, 0, glyphs, i - start); ++ 0, 0, glyphs + start , i - start); + } + } + else +@@ -732,7 +732,7 @@ XftDrawGlyphFontSpec (XftDraw *draw, + while (i < len && !((XftFontInt *) glyphs[i].font)->format) + i++; + if (_XftDrawCorePrepare (draw, color)) +- XftGlyphFontSpecCore (draw, color, glyphs, len); ++ XftGlyphFontSpecCore (draw, color, glyphs + start, i - start); + } + } + } |