aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorPaul Eggert2011-06-20 19:16:54 -0700
committerPaul Eggert2011-06-20 19:16:54 -0700
commit3a5077c52bb88d1a354d4122ef4bf660d84651f6 (patch)
tree7c4c35b5a2c3b0a3215f08adb07999f282eac8d6 /src/xselect.c
parent281549626c7a22c2d8643fc563974ee6fbc401a8 (diff)
downloademacs-3a5077c52bb88d1a354d4122ef4bf660d84651f6.tar.gz
emacs-3a5077c52bb88d1a354d4122ef4bf660d84651f6.zip
* xselect.c (Fx_get_atom_name): Avoid need for strlen.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 5b01fc22a42..7f4e0b40f62 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2361,7 +2361,7 @@ If the value is 0 or the atom is not known, return the empty string. */)
2361 x_uncatch_errors (); 2361 x_uncatch_errors ();
2362 2362
2363 if (!had_errors) 2363 if (!had_errors)
2364 ret = make_string (name, strlen (name)); 2364 ret = build_string (name);
2365 2365
2366 if (atom && name) XFree (name); 2366 if (atom && name) XFree (name);
2367 if (NILP (ret)) ret = empty_unibyte_string; 2367 if (NILP (ret)) ret = empty_unibyte_string;