Fixed environment when no newline was present.
authorIain Patterson <me@iain.cx>
Fri, 22 Nov 2013 14:11:11 +0000 (14:11 +0000)
committerIain Patterson <me@iain.cx>
Fri, 22 Nov 2013 14:11:14 +0000 (14:11 +0000)
commite72db63c5e025d3936be5228c8c1ffe4deb3f15d
tree73435b77c1e9139d4caf472da6c9946c75aa3555
parent88007006e2caf2c9f33c4099c0b04e3a806498aa
Fixed environment when no newline was present.

If the user entered environment variables without a trailing newline we
might have been left with only one trailing NULL and therefore the
environment parameter would have been invalid.  The path of least
resistance is to add two trailing NULLs unconditionally.
gui.cpp