diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-07-16 21:55:02 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-07-16 21:55:02 +0000 |
commit | 7f96b4b4521d77448f219acf4c800bf1aa7b49cf (patch) | |
tree | 26ab8e4cd12770658de0eae07fa364e3da5560ea /src | |
parent | d0a1523c53621bb553e02f546c0df07d699e4d29 (diff) | |
download | xine-lib-7f96b4b4521d77448f219acf4c800bf1aa7b49cf.tar.gz xine-lib-7f96b4b4521d77448f219acf4c800bf1aa7b49cf.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-utils/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
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<j+16; i++) { if( i<length ) - printf ("%02X ", buf[i]); + printf ("%02X ", (unsigned char) buf[i]); else printf(" "); } for (i=j;i<(j+16<length?j+16:length);i++) { c=buf[i]; - if ((c>=20) && (c<128)) + if ((c>=32) && (c<128)) printf ("%c", c); else printf ("."); |