fixed a segfault crash in cs_log() and cs_log_debug()
Merge pull request #60 from jahntheman/master

fixed a segfault crash in cs_log() and cs_log_debug()