Fix potential NULL pointer dereference, and buffer overruns
enc_utf16.c: move the arg check on putf16 being NULL up before it's used riscos.c: strncat() includes a terminator, so don't terminate, and pass one less on the limit unix.c: same again for strncat(), and don't assume strncpy() includes a terminator Found by cppcheck static analysis. Version 0.63. Tagged as 'Unicode-0_63'
Showing with 18 additions and 19 deletions