diff options
author | Ekdohibs <nathanael.courant@laposte.net> | 2016-04-21 10:45:42 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-04-21 10:15:17 +0100 |
commit | c350cfb50b3bf81c075a80307adb15393ea773d0 (patch) | |
tree | 141921a19662a79cc3943d730f87c413e6c9c6eb /src/script/cpp_api/s_async.h | |
parent | 5c32c5e945275c612c10021bbd2117a73a97fc3f (diff) | |
download | minetest-c350cfb50b3bf81c075a80307adb15393ea773d0.tar.gz minetest-c350cfb50b3bf81c075a80307adb15393ea773d0.tar.bz2 minetest-c350cfb50b3bf81c075a80307adb15393ea773d0.zip |
Make logging use a fixed-length buffer to avoid race conditions.
Previously, race conditions occurred inside logging, that caused
segfaults because a thread was trying to use an old pointer that
was freed when the string was reallocated. Using a fixed-length buffer
avoids this, at the cost of cutting too long messages over seveal lines.
Diffstat (limited to 'src/script/cpp_api/s_async.h')
0 files changed, 0 insertions, 0 deletions