diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-12 19:38:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-12 19:38:44 +0000 |
commit | 3004d6df5e47bc94053bba1328d73a63c7540609 (patch) | |
tree | 90207a20f69ff0c810b4ad246af8c06b00e2bd72 /bin/ed/cbc.c | |
parent | 5df03423fe6ca2c39244d226c95864e4fe57f417 (diff) |
Back out my sprintf -> snprintf changes where they don't make sense and
use good ole strcpy() instead. Also use perror() instead of fprintf()
where it makes sense.
Diffstat (limited to 'bin/ed/cbc.c')
-rw-r--r-- | bin/ed/cbc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ed/cbc.c b/bin/ed/cbc.c index 48fe9ecef5c..3eb9efbcf89 100644 --- a/bin/ed/cbc.c +++ b/bin/ed/cbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cbc.c,v 1.3 1996/09/15 22:25:54 millert Exp $ */ +/* $OpenBSD: cbc.c,v 1.4 1996/10/12 19:38:31 millert Exp $ */ /* $NetBSD: cbc.c,v 1.9 1995/03/21 09:04:36 cgd Exp $ */ /* cbc.c: This file contains the encryption routines for the ed line editor */ @@ -44,7 +44,7 @@ #if 0 static char *rcsid = "@(#)cbc.c,v 1.2 1994/02/01 00:34:36 alm Exp"; #else -static char rcsid[] = "$OpenBSD: cbc.c,v 1.3 1996/09/15 22:25:54 millert Exp $"; +static char rcsid[] = "$OpenBSD: cbc.c,v 1.4 1996/10/12 19:38:31 millert Exp $"; #endif #endif /* not lint */ @@ -212,7 +212,7 @@ void des_error(s) char *s; /* the message */ { - (void)snprintf(errmsg, sizeof(errmsg), "%s", s ? s : strerror(errno)); + strcpy(errmsg, s ? s : strerror(errno)); } /* @@ -301,7 +301,7 @@ expand_des_key(obuf, ibuf) /* * no special leader -- ASCII */ - (void)strncpy(obuf, ibuf, 8); + strncpy(obuf, ibuf, 8); } /***************** |