* lib/remote.exp (standard_wait): Append any trailing characters
	to $output that may be still in $expect_out(buffer) when eof is
	matched. Remove arbitrary limitation in the ".+" matching case,
	similar to the change to local_exec on 2016-02-17.

(cherry picked from commit 8d2062e95e02c9c575ef6295afbd5df45bf2c2dd)

Conflicts:
	ChangeLog
2 files changed