aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nsterm.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 59a42eed887..50e06c94d45 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -9152,9 +9152,9 @@ ns_xlfd_to_fontname (const char *xlfd)
9152 const char *ret; 9152 const char *ret;
9153 9153
9154 if (!strncmp (xlfd, "--", 2)) 9154 if (!strncmp (xlfd, "--", 2))
9155 sscanf (xlfd, "--%*[^-]-%[^-]179-", name); 9155 sscanf (xlfd, "--%*[^-]-%179[^-]-", name);
9156 else 9156 else
9157 sscanf (xlfd, "-%*[^-]-%[^-]179-", name); 9157 sscanf (xlfd, "-%*[^-]-%179[^-]-", name);
9158 9158
9159 /* stopgap for malformed XLFD input */ 9159 /* stopgap for malformed XLFD input */
9160 if (strlen (name) == 0) 9160 if (strlen (name) == 0)