pnicto / impartus-video-downloader

Impartus video downloader written in go
GNU General Public License v3.0
23 stars 3 forks source link

fix: Fix Scanf behaving differently on Windows and Unix #6

Closed soumitradev closed 1 year ago

soumitradev commented 1 year ago

On Windows, the Scanf treats \r and \n as the same, causing the first Scanf to not consume the \r, thereby causing the succeeding Scanf to register the \n instead. Adding a \n to the end of the format specifier for Scanf is sufficient to avoid this.

Closes #5