Use fgets() instead of scanf() to honour the PASSLEN constant