summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortezeb <tezeb+github@outoftheblue.pl>2017-01-09 14:15:53 +0100
committertezeb <tezeb+github@outoftheblue.pl>2017-01-09 14:16:17 +0100
commiteb615345f0cbff970660f8c3921004f4edbf6849 (patch)
tree4942cc227b3680ce73b3cbfd465b76845fd7a091 /src
parentf3389594c61733c2d81cf76665cef3af114267f5 (diff)
fix pwgen arguments
Diffstat (limited to 'src')
-rw-r--r--src/pass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pass.cpp b/src/pass.cpp
index 9e52893e..53b74aae 100644
--- a/src/pass.cpp
+++ b/src/pass.cpp
@@ -66,13 +66,13 @@ QString Pass::Generate_b(int length, const QString &charset) {
QStringList args;
args.append("-1");
if (QtPassSettings::isLessRandom())
- args.append("--secure ");
- args.append(QtPassSettings::isAvoidCapitals() ? "--no-capitalize "
- : "--capitalize ");
- args.append(QtPassSettings::isAvoidNumbers() ? "--no-numerals "
- : "--numerals ");
+ args.append("--secure");
+ args.append(QtPassSettings::isAvoidCapitals() ? "--no-capitalize"
+ : "--capitalize");
+ args.append(QtPassSettings::isAvoidNumbers() ? "--no-numerals"
+ : "--numerals");
if (QtPassSettings::isUseSymbols())
- args.append("--symbols ");
+ args.append("--symbols");
args.append(QString::number(length));
QString p_out;
// TODO(bezet): try-catch here(2 statuses to merge o_O)