Avoid harmless off-by-one calculation
Updated the copyright line
Using PROGNAME for makepasswd(1)
Avoid a crash on invalid input values