Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
35016e9a
Commit
35016e9a
authored
Jun 19, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* callproc.c (child_setup): Rewrite to avoid two strlen calls.
parent
3d1e65a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/ChangeLog
src/ChangeLog
+2
-0
src/callproc.c
src/callproc.c
+1
-2
No files found.
src/ChangeLog
View file @
35016e9a
2011-06-19 Paul Eggert <eggert@cs.ucla.edu>
* callproc.c (child_setup): Rewrite to avoid two strlen calls.
* process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT.
We prefer signed integers, even for size calculations.
...
...
src/callproc.c
View file @
35016e9a
...
...
@@ -1230,8 +1230,7 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L
if
(
STRINGP
(
display
))
{
int
vlen
=
strlen
(
"DISPLAY="
)
+
strlen
(
SSDATA
(
display
))
+
1
;
char
*
vdata
=
(
char
*
)
alloca
(
vlen
);
char
*
vdata
=
(
char
*
)
alloca
(
sizeof
"DISPLAY="
+
SBYTES
(
display
));
strcpy
(
vdata
,
"DISPLAY="
);
strcat
(
vdata
,
SSDATA
(
display
));
new_env
=
add_env
(
env
,
new_env
,
vdata
);
...
...
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