From 7f96b4b4521d77448f219acf4c800bf1aa7b49cf Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Wed, 16 Jul 2003 21:55:02 +0000 Subject: 1) signed data needs casting to unsigned 2) don't print out control characters CVS patchset: 5170 CVS date: 2003/07/16 21:55:02 --- src/xine-utils/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index 92161b5af..1a81ae398 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: utils.c,v 1.14 2003/07/16 14:14:17 andruil Exp $ + * $Id: utils.c,v 1.15 2003/07/16 21:55:02 jstembridge Exp $ * */ #define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */ @@ -187,13 +187,13 @@ void xine_hexdump (char *buf, int length) { printf ("%04X ",j); for (i=j; i=20) && (c<128)) + if ((c>=32) && (c<128)) printf ("%c", c); else printf ("."); -- cgit v1.2.3