X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fvmhsbr.c;h=8ee1e49d0412f3df6e6430ede4be6f9c8c99a694;hb=08baf4f8bc7623c41a9753c71aed9a4042196aac;hp=4a2b951f66e7d8592ad17af7eda288cf926a14fe;hpb=5fc7e12e8c45a78bddb8e68b6c69653f8d30d11c;p=mmh diff --git a/uip/vmhsbr.c b/uip/vmhsbr.c index 4a2b951..8ee1e49 100644 --- a/uip/vmhsbr.c +++ b/uip/vmhsbr.c @@ -3,6 +3,10 @@ * vmhsbr.c -- routines to help vmh along * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ /* @@ -106,7 +110,7 @@ peer2rc (struct record *rc) if (fp) { fseek (fp, 0L, SEEK_END); fprintf (fp, "%d: <--- %s %d: \"%*.*s\"\n", (int) getpid(), - types[(int)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 +131,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[(int)rc->rc_type], rc->rc_len, + types[(unsigned char)rc->rc_type], rc->rc_len, rc->rc_len, rc->rc_len, data); fflush (fp); }