diff options
-rw-r--r-- | sbin/atactl/atactl.c | 4 | ||||
-rw-r--r-- | sbin/photurisd/errlog.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c index c3a196b69dd..200e561e73a 100644 --- a/sbin/atactl/atactl.c +++ b/sbin/atactl/atactl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atactl.c,v 1.3 2000/05/31 22:54:45 chris Exp $ */ +/* $OpenBSD: atactl.c,v 1.4 2000/07/05 23:41:37 deraadt Exp $ */ /* $NetBSD: atactl.c,v 1.4 1999/02/24 18:49:14 jwise Exp $ */ /*- @@ -262,7 +262,7 @@ print_bitinfo(f, bits, binfo) for (; binfo->bitmask != NULL; binfo++) if (bits & binfo->bitmask) - printf(f, binfo->string); + printf(f, "%s", binfo->string); } /* diff --git a/sbin/photurisd/errlog.c b/sbin/photurisd/errlog.c index 1025aa98341..d84e2fd22a5 100644 --- a/sbin/photurisd/errlog.c +++ b/sbin/photurisd/errlog.c @@ -31,11 +31,11 @@ */ /* - * $OpenBSD: errlog.c,v 1.2 2000/06/29 00:02:28 deraadt Exp $ + * $OpenBSD: errlog.c,v 1.3 2000/07/05 23:41:46 deraadt Exp $ */ #ifndef lint -static char rcsid[] = "$Id: errlog.c,v 1.2 2000/06/29 00:02:28 deraadt Exp $"; +static char rcsid[] = "$Id: errlog.c,v 1.3 2000/07/05 23:41:46 deraadt Exp $"; #endif #define _ERRLOG_C_ @@ -140,7 +140,7 @@ _log_error(int flag, char *fmt, va_list ap) if (daemon_mode) syslog(LOG_WARNING, "%s", buffer); else { - fprintf(stderr, buffer); + fprintf(stderr, "%s", buffer); if (flag) fprintf(stderr, " : %s", sys_errlist[errno]); fprintf(stderr, ".\n"); |