aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorPaul Eggert2011-06-22 09:15:41 -0700
committerPaul Eggert2011-06-22 09:15:41 -0700
commit31fd4b3280acee4030efde84a0e23ae2b006ee31 (patch)
tree0b2245daf7e6f772cbaabf8916faeb34683bb390 /src/xselect.c
parentddb7ffeeb8ace6501eb453f50f0f9f6852eda21f (diff)
parent510005210ac9f4d813c4a2cc99b2c3c11e57c055 (diff)
downloademacs-31fd4b3280acee4030efde84a0e23ae2b006ee31.tar.gz
emacs-31fd4b3280acee4030efde84a0e23ae2b006ee31.zip
Merge: Integer overflow and signedness fixes (Bug#8873).
A few related buffer overrun fixes, too.
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;