* utility.c (printdata): Cast argument to isprint() to int
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 19:20:42 +0000 (19:20 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 19:20:42 +0000 (19:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13382 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/utility.c

index a63d556625bc3169c04f522d6d988e5da6660fbc..346785cf4a2a3e6385d7fa5fe79f2644c2cf9827 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-18  Ezra Peisach  <epeisach@mit.edu>
+
+       * utility.c (printdata): Cast argument to isprint() to int.
+
 2001-06-07  Ezra Peisach  <epeisach@mit.edu>
 
        * ext.h: Remove unused prototype for start_slave() and replace
index 8b0dde0cbd5be4e5edbf6c051967771a3562e700..9266f7929fc6165a476514573d27d03c50fa4059 100644 (file)
@@ -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] = '.';