summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 10af357cc..dbc8d95a4 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -3127,7 +3127,8 @@ logfont2name(LOGFONTW lf)
quality_name = quality_id2name((int)lf.lfQuality);
res = (char *)alloc((unsigned)(strlen(font_name) + 20
- + (charset_name == NULL ? 0 : strlen(charset_name) + 2)));
+ + (charset_name == NULL ? 0 : strlen(charset_name) + 2)
+ + (quality_name == NULL ? 0 : strlen(quality_name) + 2)));
if (res != NULL)
{
p = res;