farhaven/yadex — pull request #1 by henu (2014-08-17 21:50:57+00:00)
Title: Some of sizeof() bugs fixed.

You cannot call sizeof() for dynamically allocated memory. It will just return the size of pointer, not the size of allocation.

Also strlen() counts only characters, while size parameter of snprintf() also counts the final null byte.