diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2002-08-04 14:11:42 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2002-08-04 14:11:42 +0000 |
commit | bed099a91a8e360fd84b6e8f3edf8185867e8b15 (patch) | |
tree | 125ad10edb4804c74fa490a3ab74056fac70936c /sbin/atactl/atactl.c | |
parent | e244bc1033249d7e54f3fbcbe8dfbfef0098f08e (diff) |
- grammar cleanup.
- check for the failure of strdup().
from tedu <grendel@zeitbombe.org>
Diffstat (limited to 'sbin/atactl/atactl.c')
-rw-r--r-- | sbin/atactl/atactl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c index e87027aa68e..afbd7c15d06 100644 --- a/sbin/atactl/atactl.c +++ b/sbin/atactl/atactl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atactl.c,v 1.19 2002/07/06 14:46:57 gluk Exp $ */ +/* $OpenBSD: atactl.c,v 1.20 2002/08/04 14:11:41 gluk Exp $ */ /* $NetBSD: atactl.c,v 1.4 1999/02/24 18:49:14 jwise Exp $ */ /*- @@ -673,7 +673,7 @@ device_sec_setpass(int argc, char *argv[]) * Issue IDENTIFY command to obtain master password * revision code and decrement its value. * The valid revision codes are 0x0001 through 0xfffe. - * If device returnes 0x0000 or 0xffff as a revision + * If the device returns 0x0000 or 0xffff as a revision * code then the master password revision code is not * supported so don't touch it. */ @@ -886,6 +886,8 @@ sec_getpass(int ident, int confirm) char *pass2; pass2 = strdup(pass); + if (pass2 == NULL) + err(1, "strdup()"); if ((pass = getpass(ident ? "Retype master password:" : "Retype user password:")) == NULL) err(1, "getpass()"); |