[BusyBox-cvs] busybox/networking tftp.c,1.24,1.25

Glenn McGrath bug1 at busybox.net
Fri Mar 5 13:04:41 UTC 2004


Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv23366/networking

Modified Files:
	tftp.c 
Log Message:
Fix debugging output, patch by Hideki IWAMOTO


Index: tftp.c
===================================================================
RCS file: /var/cvs/busybox/networking/tftp.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- a/tftp.c	26 Feb 2004 07:47:20 -0000	1.24
+++ b/tftp.c	5 Mar 2004 13:04:39 -0000	1.25
@@ -294,7 +294,7 @@
 #ifdef CONFIG_FEATURE_TFTP_DEBUG
 			fprintf(stderr, "sending %u bytes\n", len);
 			for (cp = buf; cp < &buf[len]; cp++)
-				fprintf(stderr, "%02x ", *cp);
+				fprintf(stderr, "%02x ", (unsigned char)*cp);
 			fprintf(stderr, "\n");
 #endif
 			if (sendto(socketfd, buf, len, 0,




More information about the busybox-cvs mailing list