diff options
| author | Dmitry Antipov | 2014-09-16 15:43:49 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-09-16 15:43:49 +0400 |
| commit | 3e67a981c4f45cf960a93e31010253b33bcdbaf5 (patch) | |
| tree | bbae14abf04e5443af7644b89ed5c60d69971af1 /src/category.c | |
| parent | b98b1a831bcfc89f038cbb8048c6969d8c73ab28 (diff) | |
| download | emacs-3e67a981c4f45cf960a93e31010253b33bcdbaf5.tar.gz emacs-3e67a981c4f45cf960a93e31010253b33bcdbaf5.zip | |
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/category.c')
| -rw-r--r-- | src/category.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/category.c b/src/category.c index 851ae1a4c24..a4610e4d358 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -96,7 +96,7 @@ those categories. */) | |||
| 96 | (Lisp_Object categories) | 96 | (Lisp_Object categories) |
| 97 | { | 97 | { |
| 98 | Lisp_Object val; | 98 | Lisp_Object val; |
| 99 | int len; | 99 | ptrdiff_t len; |
| 100 | 100 | ||
| 101 | CHECK_STRING (categories); | 101 | CHECK_STRING (categories); |
| 102 | val = MAKE_CATEGORY_SET; | 102 | val = MAKE_CATEGORY_SET; |