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
fbd02d7b
Commit
fbd02d7b
authored
Mar 14, 2011
by
Paul Eggert
Browse files
* sysdep.c: Fix pointer signedness issue.
parent
a70072c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/ChangeLog
src/ChangeLog
+1
-0
src/sysdep.c
src/sysdep.c
+3
-1
No files found.
src/ChangeLog
View file @
fbd02d7b
2011-03-14 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
Fix pointer signedness issue.
* process.c (serial_open, serial_configure): Move decls from here ...
* systty.h: ... to here, so that they can be checked.
src/sysdep.c
View file @
fbd02d7b
...
...
@@ -2845,8 +2845,10 @@ system_process_attributes (Lisp_Object pid)
fd
=
emacs_open
(
fn
,
O_RDONLY
,
0
);
if
(
fd
>=
0
)
{
for
(
cmdline_size
=
0
;
emacs_read
(
fd
,
&
c
,
1
)
==
1
;
cmdline_size
++
)
char
ch
;
for
(
cmdline_size
=
0
;
emacs_read
(
fd
,
&
ch
,
1
)
==
1
;
cmdline_size
++
)
{
c
=
ch
;
if
(
isspace
(
c
)
||
c
==
'\\'
)
cmdline_size
++
;
/* for later quoting, see below */
}
...
...
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