Commit fbd02d7b authored by Paul Eggert's avatar Paul Eggert

* sysdep.c: Fix pointer signedness issue.

parent a70072c9
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.
......@@ -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 */
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment