Replaced printf with sprintf for thrown exception
Merge pull request #7 from danut007ro/printf-fix

Replaced printf with sprintf for thrown exception