From: Ezra Peisach Date: Mon, 18 Jun 2001 19:20:42 +0000 (+0000) Subject: * utility.c (printdata): Cast argument to isprint() to int X-Git-Tag: krb5-1.3-alpha1~1385 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=431808b93caa05fae8e87e549363f1272c02a953;p=krb5.git * utility.c (printdata): Cast argument to isprint() to int git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13382 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index a63d55662..346785cf4 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,7 @@ +2001-06-18 Ezra Peisach + + * utility.c (printdata): Cast argument to isprint() to int. + 2001-06-07 Ezra Peisach * ext.h: Remove unused prototype for start_slave() and replace diff --git a/src/appl/telnet/telnetd/utility.c b/src/appl/telnet/telnetd/utility.c index 8b0dde0cb..9266f7929 100644 --- a/src/appl/telnet/telnetd/utility.c +++ b/src/appl/telnet/telnetd/utility.c @@ -1212,7 +1212,7 @@ printdata(tag, ptr, cnt) for (i = 0; i < 20 && cnt; i++) { sprintf(nfrontp, "%02x", *ptr); nfrontp += strlen(nfrontp); - if (isprint(*ptr)) { + if (isprint((int) *ptr)) { xbuf[i] = *ptr; } else { xbuf[i] = '.';