Fix buffer overflow

    modified:   intro.cpp
Remove a redundant null-terminator

    modified:   intro.cpp
Check .ico extension correctly

This fixes the case that a path includes multiple dots such as a.b.ico
or d.ir\icon.ico.

    modified:   intro.cpp