mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
fix password handling
This commit is contained in:
1 parent
10436796ef
commit
4d1186c003
3 files changed
+12
-1
No files matched your search
+5
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user