Initialize correctly buflen

buflen was used not initialized as valgrind was complaining.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>