fix password handling

This commit is contained in:
okuji committed 1999-08-09 02:22:42 +00:00
1 parent 10436796ef
commit 4d1186c003
3 files changed
+12 -1

No files matched your search

+5 -1
View File
@@ -364,8 +364,12 @@ restart:
gotoxy(1, 21);
get_cmdline (" Password: ", commands, entered, 31, '*');
while (! isspace (*pptr))
while (! isspace (*pptr) && *pptr)
pptr ++;
/* Make sure that PASSWORD is NUL-terminated. */
*pptr++ = 0;
if (! strcmp (password, entered))
{
char *new_file = config_file;