Commit 3a5077c5 authored by Paul Eggert's avatar Paul Eggert

* xselect.c (Fx_get_atom_name): Avoid need for strlen.

parent 28154962
2011-06-21 Paul Eggert <eggert@cs.ucla.edu>
* xselect.c (Fx_get_atom_name): Avoid need for strlen.
* xrdb.c: Don't assume strlen fits in int; avoid some strlens.
* xrdb.c (magic_file_p, search_magic_path):
Omit last arg SUFFIX; it was always 0. All callers changed.
......
......@@ -2361,7 +2361,7 @@ If the value is 0 or the atom is not known, return the empty string. */)
x_uncatch_errors ();
if (!had_errors)
ret = make_string (name, strlen (name));
ret = build_string (name);
if (atom && name) XFree (name);
if (NILP (ret)) ret = empty_unibyte_string;
......
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