fix small memory leaks in the function do_send_photo for the cases of invalid, empty or large file
add functions tstrndup (auto check return value of strndup calls)
don't output backtrace in out of memory case
fix #include "config.h" for all source files
remove useless #define _GNU_SOURCE from not using asprintf sources
fix some autoscan warnings
Merge pull request #37 from antma/master

checks strndup result & enhance configure.ac
restored _GNU_SOURCE for getline in FreeBSD
fix sending a lot of spaces in version string
Merge pull request #38 from antma/master

fix sending a lot of spaces in version string
Update README.md
strutures.c: fixed bad flags in get chat query
Merge branch 'master' of github.com:vysheng/tg
Merge remote-tracking branch 'upstream/master'
- More verbose messages