Allow single character passwords
This commit is contained in:
parent
1f0b60a405
commit
04ebaefede
@ -674,7 +674,7 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
if ((optarg[0] != '-') && (optarg[1] != 0))
|
if (!((optarg[0] == '-') && (optarg[1] == 0)))
|
||||||
{
|
{
|
||||||
STRNCPY(g_password, optarg, sizeof(g_password));
|
STRNCPY(g_password, optarg, sizeof(g_password));
|
||||||
flags |= RDP_INFO_AUTOLOGON;
|
flags |= RDP_INFO_AUTOLOGON;
|
||||||
|
Loading…
Reference in New Issue
Block a user