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
3f83ace8
Commit
3f83ace8
authored
May 02, 2012
by
Jim Meyering
Committed by
Chong Yidong
May 02, 2012
Browse files
* src/xterm.c (x_term_init): Use memcpy instead of strncpy.
Fixes: debbugs:11373
parent
9aa071df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/ChangeLog
src/ChangeLog
+4
-0
src/xterm.c
src/xterm.c
+1
-1
No files found.
src/ChangeLog
View file @
3f83ace8
2012-05-02 Jim Meyering <jim@meyering.net>
* xterm.c (x_term_init): Use memcpy instead of strncpy (Bug#11373).
2012-05-02 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (pos_visible_p): If already at a newline from the
...
...
src/xterm.c
View file @
3f83ace8
...
...
@@ -10146,7 +10146,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
/* Set the name of the terminal. */
terminal->name = (char *) xmalloc (SBYTES (display_name) + 1);
strn
cpy (terminal->name, SSDATA (display_name), SBYTES (display_name));
mem
cpy (terminal->name, SSDATA (display_name), SBYTES (display_name));
terminal->name[SBYTES (display_name)] = 0;
#if 0
...
...
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