Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3a5077c5
Commit
3a5077c5
authored
Jun 20, 2011
by
Paul Eggert
Browse files
* xselect.c (Fx_get_atom_name): Avoid need for strlen.
parent
28154962
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/ChangeLog
src/ChangeLog
+2
-0
src/xselect.c
src/xselect.c
+1
-1
No files found.
src/ChangeLog
View file @
3a5077c5
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.
...
...
src/xselect.c
View file @
3a5077c5
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment