diff options
author | Alexander Zakharov <uglym8@gmail.com> | 2017-12-01 11:55:06 +0300 |
---|---|---|
committer | Alexander Zakharov <uglym8@gmail.com> | 2017-12-01 11:55:06 +0300 |
commit | 04ebaefede1400b92d82aac3e7384dc0eb57768c (patch) | |
tree | a8da15b12aadecf421adceeba043b420b779d853 | |
parent | 1f0b60a405471929b7ef3b9fd74efd16a801fee0 (diff) | |
download | rdesktop-04ebaefede1400b92d82aac3e7384dc0eb57768c.zip |
Allow single character passwords
-rw-r--r-- | rdesktop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |