NaCl: Fix off-by-one in getcwd() syscall emulation.

TEST= manual testing on OSX + toolchain trybots
BUG= https://code.google.com/p/nativeclient/issues/detail?id=4010
R=mcgrathr@chromium.org

Review URL: https://codereview.chromium.org/759833008
1 file changed