diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-09-13 08:41:54 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-09-13 08:41:54 +0400 |
commit | 55998321452ca84a5e6be71c97063d8514cd8668 (patch) | |
tree | d1cfd555685e4867ec4d3bd0fd62773156912a3c /src/font.c | |
parent | 82bb5d8c5bc9c732fb98e27f27f9aa03664055f1 (diff) | |
download | emacs-55998321452ca84a5e6be71c97063d8514cd8668.tar.gz |
Prefer ptrdiff_t to int and avoid integer overflows.
* fileio.c (make_temp_name):
* font.c (font_parse_family_registry): Avoid integer
overflow on string size calculation.
* data.c (Faset): Likewise for byte index.
Diffstat (limited to 'src/font.c')
-rw-r--r-- | src/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c index 46fc51bd5ad..412cd3f938d 100644 --- a/src/font.c +++ b/src/font.c @@ -1761,7 +1761,7 @@ font_parse_name (char *name, ptrdiff_t namelen, Lisp_Object font) void font_parse_family_registry (Lisp_Object family, Lisp_Object registry, Lisp_Object font_spec) { - int len; + ptrdiff_t len; char *p0, *p1; if (! NILP (family) |