summaryrefslogblamecommitdiffstats
path: root/x11-wm/sawfish/files/patch-src_fonts.c
blob: efcdf25019fae1d93c3830b6c14b85d295a04ba6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                
--- src/fonts.c.orig    Sun Nov  3 22:00:36 2002
+++ src/fonts.c Wed Feb  8 04:22:13 2006
@@ -131,7 +131,7 @@
        if (end == 0)
        end = p + strlen (p);
        len = end - (p + 1);
-       buf = malloc (len);
+       buf = malloc (len + 1);
        memcpy (buf, p + 1, len);
        buf[len] = 0;
        return buf;