summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Andersson <hean01@cendio.com>2017-12-04 09:03:14 +0100
committerGitHub <noreply@github.com>2017-12-04 09:03:14 +0100
commit5961aabc009a8ad5a8086512cb1681fda2708c3c (patch)
treea8da15b12aadecf421adceeba043b420b779d853
parent1f0b60a405471929b7ef3b9fd74efd16a801fee0 (diff)
parent04ebaefede1400b92d82aac3e7384dc0eb57768c (diff)
downloadrdesktop-5961aabc009a8ad5a8086512cb1681fda2708c3c.zip
Merge pull request #204 from uglym8/allow_short_passwords
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;