fixed typo: assignment instead of compare

CID:27910
assure that we do an assignment in the comparision

CID:27911
make sure that strncpy() returns NULL-terminated characters.

CID:27797
CID:27798
use strncpy() to limit copy-size

CID:27943
CID:27944
skip frei0r/freeframe loader without name

CID:27866
CID:27867
avoid accessing NULL-pointers

esp. since we already have the value cached.

CID:27868
assert() that the state is valid before using it

CID:27871
CID:27872
when checking for NULL-pointers do so consequently

CID:27935
CID:27936