Use size_t for len

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Add 'truecolor [on|off]' as it cannot be correctly detected

https://lists.gnu.org/archive/html/bug-ncurses/2013-10/msg00007.html

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
fix for multijob build

make sure that comm.sh script generates comm.h header before doing
anything else

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Keep variables in headers belonging to files

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Missing headers

Without them D_ESCseen behaves in unpredictable ways

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
bug #41167: fixes for various Parfait errors

https://savannah.gnu.org/bugs/?41167

Hello,
I made fixes for various Parfait static code analysis errors, such as memleaks and file descriptor leaks.
Hope it helps.

applied with a bit of modification
Adds screen.exe to src/.gitignore
add caption on top as option

nice patch from Neal Fultz, slightly adapted
draw hardstatus using default colors

when using caption splitonly, it would leak standout colors to background
document mchar structure
better name function + argument, const args
merge trivial function into the caller
Allocator sizeof operand mismatch

clang analyzer

process.c:4666
Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
process.c:4668
Result of 'malloc' is converted to a pointer of type 'int', which is incompatible with sizeof operand type 'int *'
process.c:4687
Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
screen.c:1266
Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
Dead assignment

clang analyzer

Value stored to 'rep_cnt' is never read
Dead assignment

clang analyzer

Value stored to 'font' is never read
Value stored to 'inhstr' is never read
Dead assignment

clang analyzer

Value stored to 'i' is never read
Dead assignment

clang analyzer

Value stored to 'x1' is never read
Use-after-free

clang analyzer

move it before free
Use-after-free

clang analyzer

this one should've been freeing something else
Double free memory

found by clang analyzer

mark memory as freed so it doesn't try to realloc it later