Subj : Improvements to linux dosemu support To : GitLab note in main/sbbs From : Rob Swindell Date : Tue Dec 15 2020 20:07:46 https://gitlab.synchro.net/main/sbbs/-/merge_requests/56#note_1228 A couple of things here: using *exact* sizes for small strings is especially dangerous (off-by-one is a popular mistake and cause of stack corruption). Better to over-allocate or even better yet: don't allocate at all. Just use `const char* runtype;` in this case and then assign it the constant value you want later (e.g. `runtype = "something";`). No chance of accidental buffer overflow then. --- SBBSecho 3.11-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .