summaryrefslogtreecommitdiff
path: root/src/w32font.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2014-09-16 15:43:49 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2014-09-16 15:43:49 +0400
commit3e67a981c4f45cf960a93e31010253b33bcdbaf5 (patch)
treebbae14abf04e5443af7644b89ed5c60d69971af1 /src/w32font.c
parentb98b1a831bcfc89f038cbb8048c6969d8c73ab28 (diff)
downloademacs-3e67a981c4f45cf960a93e31010253b33bcdbaf5.tar.gz
Avoid more integer overflows on string size calculations.
* category.c (Fmake_category_set): * xdisp.c (get_overlay_arrow_glyph_row): * w32font.c (intern_font_name): Prefer ptrdiff_t to int.
Diffstat (limited to 'src/w32font.c')
-rw-r--r--src/w32font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32font.c b/src/w32font.c
index de0732dd4da..24666ad97c7 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -287,7 +287,7 @@ Lisp_Object
intern_font_name (char * string)
{
Lisp_Object str = DECODE_SYSTEM (build_string (string));
- int len = SCHARS (str);
+ ptrdiff_t len = SCHARS (str);
Lisp_Object obarray = check_obarray (Vobarray);
Lisp_Object tem = oblookup (obarray, SDATA (str), len, len);
/* This code is similar to intern function from lread.c. */