X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6ee86a18ee336cce7df303753e4989e519162cf5..e66e25ec491d0fb3df708000d8494b4d598f0263:/uip/vmhsbr.c diff --git a/uip/vmhsbr.c b/uip/vmhsbr.c index c8743959..cc92b49b 100644 --- a/uip/vmhsbr.c +++ b/uip/vmhsbr.c @@ -106,7 +106,7 @@ peer2rc (struct record *rc) if (fp) { fseek (fp, 0L, SEEK_END); fprintf (fp, "%d: <--- %s %d: \"%*.*s\"\n", (int) getpid(), - types[rc->rc_type], rc->rc_len, + types[(unsigned char)rc->rc_type], rc->rc_len, rc->rc_len, rc->rc_len, rc->rc_data); fflush (fp); } @@ -127,7 +127,7 @@ rc2peer (char code, int len, char *data) if (fp) { fseek (fp, 0L, SEEK_END); fprintf (fp, "%d: ---> %s %d: \"%*.*s\"\n", (int) getpid(), - types[rc->rc_type], rc->rc_len, + types[(unsigned char)rc->rc_type], rc->rc_len, rc->rc_len, rc->rc_len, data); fflush (fp); }