4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

Cygwin: pty: Remove meaningless pointer increment.

- Since commit 73742508fcd8e994450582c1b7296c709da66764, a pointer
  increment in master write code which has no effect was remaining.
This commit is contained in:
Takashi Yano 2020-02-04 21:25:52 +09:00 committed by Corinna Vinschen
parent ac1ccc29e1
commit 65ad1c0ab0

View File

@ -2338,7 +2338,7 @@ fhandler_pty_master::write (const void *ptr, size_t len)
WriteFile (to_slave, "\003", 1, &n, 0);
}
line_edit_status status = line_edit (p++, len, ti, &ret);
line_edit_status status = line_edit (p, len, ti, &ret);
if (status > line_edit_signalled && status != line_edit_pipe_full)
ret = -1;
return ret;