Fix storage of values of engine string options
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 26 Nov 2016 11:33:54 +0000 (12:33 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 15:39:23 +0000 (16:39 +0100)
commit28a742f1ef86e353f4eed6ec0841d483b29a5794
tree017bd4ecb093c67c677ff5f43dd438781821ca89
parent0560406e1440775b2158051b2c13324e5be7ee78
Fix storage of values of engine string options

Originally all option definitions given in option features were stored
in a static array of generous size (MSG_SIZ). But this was changed to
allocated memory for not wasting space on unused option slots. The allocated
memory wasonly large enough to hold the default value of the option,
which could very well be an empty string. Changing the option setting
to a longer strig would then produce memory corruption through buffer overrun.
Now the memory allocated for option features is again at least MSG_SIZ.
backend.c