From: levitte@gmail.com Date: Tue, 25 Aug 2009 10:13:56 +0000 (+0000) Subject: Correct various typos X-Git-Tag: yubikey-personalisation_0.97-1~30 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f56c4287a88632078568b762d272cba3b206eaa;p=yubikey-personalization.old Correct various typos git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@150 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- diff --git a/ykpersonalize.c b/ykpersonalize.c index 9bd81dd..e46358e 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -176,17 +176,17 @@ main(int argc, char **argv) else printf("Unconfigured\n"); - if (ykp_configure_for(cfg, 1, st)) + if (!ykp_configure_for(cfg, 1, st)) goto err; while((c = getopt(argc, argv, optstring)) != -1) { switch (c) { case '1': - if (ykp_configure_for(cfg, 1, st)) + if (!ykp_configure_for(cfg, 1, st)) goto err; break; case '2': - if (ykp_configure_for(cfg, 2, st)) + if (!ykp_configure_for(cfg, 2, st)) goto err; break; case 'i': @@ -399,7 +399,7 @@ main(int argc, char **argv) fgets(passphrasebuf, sizeof(passphrasebuf), stdin); passphraselen = strlen(passphrasebuf); if (passphrasebuf[passphraselen - 1] == '\n') - passphrasebuf[passphraselen - 1] == '\0'; + passphrasebuf[passphraselen - 1] = '\0'; if (!ykp_AES_key_from_passphrase(cfg, passphrasebuf, salt)) goto err; @@ -422,7 +422,7 @@ main(int argc, char **argv) } commitlen = strlen(commitbuf); if (commitbuf[commitlen - 1] == '\n') - commitbuf[commitlen - 1] == '\0'; + commitbuf[commitlen - 1] = '\0'; if (strcmp(commitbuf, "y") == 0 || strcmp(commitbuf, "yes") == 0) { exit_code = 2;