X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fvmhsbr.c;h=cc92b49bbe91a13a5386b09277ab6d6d48eff081;hb=b28e871ba874a53257b37eed94adfc365ed6ebf2;hp=c8743959ee66b00fbf0b684f37bdc10cb37253c5;hpb=6ee86a18ee336cce7df303753e4989e519162cf5;p=mmh diff --git a/uip/vmhsbr.c b/uip/vmhsbr.c index c874395..cc92b49 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); }