Tox/toxic — pull request #55 by aitjcize (2013-11-27 19:29:31+00:00)
Title: Fix trailing slashes which leads to segfault.

When filename has trailing slashes, say '/path/to/a/dir/', the current implementation will failed to detect this case and set the filename to '/path/to/a/dir/' instead of 'dir', which will lead to segfault in chat_onFileData.