Fixes segfault due to sscanf not size limited (redmine #2912)
Merge pull request #786 from jeffali/temp/2912

Fixes segfault due to sscanf not size limited (redmine #2912)