(wrong string) ße

From: <git_AT_suckless.org>
Date: Sun, 15 Feb 2015 17:20:00 +0100 (CET)

commit 7dd24bfb4c80960567d2d4dd4cf7ca5f2af95a52
Author: Nils Reuße <ml_AT_hxgn.net>
Date: Sun Feb 15 17:11:22 2015 +0100

    Fix crash on font resize resize
    
    if you keep downsizing your fontsize until either xw.ch or xw.cw gets 0,
    st crashes, because there is an unchecked division in cresize.

diff --git a/st.c b/st.c
index 1deb7bc..142a152 100644
--- a/st.c
+++ b/st.c
_AT_@ -2992,7 +2992,7 @@ xloadfonts(char *fontstr, double fontsize) {
         if(!pattern)
                 die("st: can't open font %s\n", fontstr);
 
- if(fontsize > 0) {
+ if(fontsize > 1) {
                 FcPatternDel(pattern, FC_PIXEL_SIZE);
                 FcPatternDel(pattern, FC_SIZE);
                 FcPatternAddDouble(pattern, FC_PIXEL_SIZE, (double)fontsize);
Received on Sun Feb 15 2015 - 17:20:00 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 15 2015 - 17:24:09 CET