There is a typo in my last comment. I should have said "You hardcode "%15s" in the format string for sscanf"
There is a typo in my last comment. I should have said "You hardcode "%15s" in the format string for sscanf"