summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Zakharov <uglym8@gmail.com>2017-12-01 11:55:06 +0300
committerAlexander Zakharov <uglym8@gmail.com>2017-12-01 11:55:06 +0300
commit04ebaefede1400b92d82aac3e7384dc0eb57768c (patch)
treea8da15b12aadecf421adceeba043b420b779d853
parent1f0b60a405471929b7ef3b9fd74efd16a801fee0 (diff)
downloadrdesktop-04ebaefede1400b92d82aac3e7384dc0eb57768c.zip
Allow single character passwords
-rw-r--r--rdesktop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdesktop.c b/rdesktop.c
index 1a3c3d2..a60ef61 100644
--- a/rdesktop.c
+++ b/rdesktop.c
@@ -674,7 +674,7 @@ main(int argc, char *argv[])
break;
case 'p':
- if ((optarg[0] != '-') && (optarg[1] != 0))
+ if (!((optarg[0] == '-') && (optarg[1] == 0)))
{
STRNCPY(g_password, optarg, sizeof(g_password));
flags |= RDP_INFO_AUTOLOGON;