summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sendmail/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sendmail/src/util.c')
-rw-r--r--usr/src/cmd/sendmail/src/util.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/src/cmd/sendmail/src/util.c b/usr/src/cmd/sendmail/src/util.c
index d23c798231..ab491fbfe5 100644
--- a/usr/src/cmd/sendmail/src/util.c
+++ b/usr/src/cmd/sendmail/src/util.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998-2007 Sendmail, Inc. and its suppliers.
+ * Copyright (c) 1998-2007, 2009 Sendmail, Inc. and its suppliers.
* All rights reserved.
* Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
* Copyright (c) 1988, 1993
@@ -11,11 +11,9 @@
*
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sendmail.h>
-SM_RCSID("@(#)$Id: util.c,v 8.414 2007/11/02 17:30:38 ca Exp $")
+SM_RCSID("@(#)$Id: util.c,v 8.416 2009/12/18 17:05:26 ca Exp $")
#include <sm/sendmail.h>
#include <sysexits.h>
@@ -870,7 +868,7 @@ xputs(fp, s)
c &= 0177;
}
printchar:
- if (isprint(c))
+ if (isascii(c) && isprint(c))
{
(void) sm_io_putc(fp, SM_TIME_DEFAULT, c);
continue;
@@ -897,7 +895,7 @@ xputs(fp, s)
TermEscape.te_rv_on);
shiftout = true;
}
- if (isprint(c))
+ if (isascii(c) && isprint(c))
{
(void) sm_io_putc(fp, SM_TIME_DEFAULT, '\\');
(void) sm_io_putc(fp, SM_TIME_DEFAULT, c);