chiark / gitweb /
Fix NUL-termination bug in saving from Javascript.
authorSimon Tatham <anakin@pobox.com>
Thu, 21 Jun 2018 17:54:08 +0000 (18:54 +0100)
committerSimon Tatham <anakin@pobox.com>
Thu, 21 Jun 2018 17:54:08 +0000 (18:54 +0100)
commit3618f6a07f71336ad5741836afb6aeb6cae3ff99
tree4ecd6edb0ba939e6acdbf434b84b86c022088e38
parent506b07352ae225c74e79f6c6e7872bc2005bdb53
Fix NUL-termination bug in saving from Javascript.

The JS code that retrieves the save-file data from emcc.c doesn't
receive a separate length value, but instead expects the data to be in
the form of a NUL-terminated string. But emcc.c wasn't NUL-terminating
it, so the save data could come out with random cruft on the end.
emcc.c