Commit 6e5bb2dc authored by Paul Eggert's avatar Paul Eggert
Browse files

* lread.c (intern, intern_c_string): Don't assume strlen fits in int.

parent 52c61c22
2011-06-20 Paul Eggert <eggert@cs.ucla.edu>
* lread.c (intern, intern_c_string):
* image.c (xpm_scan) [HAVE_NS && !HAVE_XPM]:
Don't assume string length fits in int.
......
......@@ -3650,7 +3650,7 @@ Lisp_Object
intern (const char *str)
{
Lisp_Object tem;
int len = strlen (str);
ptrdiff_t len = strlen (str);
Lisp_Object obarray;
obarray = Vobarray;
......@@ -3666,7 +3666,7 @@ Lisp_Object
intern_c_string (const char *str)
{
Lisp_Object tem;
int len = strlen (str);
ptrdiff_t len = strlen (str);
Lisp_Object obarray;
obarray = Vobarray;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment