Fixing critical bug.
See smram.c:263 for details.
Also replaced uint32_t with size_t everywhere.
Merge branch 'master' of https://github.com/majorpakhom/smram.git