Fix invalid use of sizeof
Merge pull request #30 from rgacogne/master

Fix invalid use of sizeof