Add tzanger's patch which (among other things) prints whitespace in IE dumps

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@285 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Matthew Fredrickson
2006-01-05 19:33:32 +00:00
parent 274f535654
commit 9e03b9b8c7

5
q931.c
View File

@@ -32,6 +32,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <limits.h>
@@ -1439,9 +1440,7 @@ static void dump_ie_data(unsigned char *c, int len)
int x=0;
int lastascii = 0;
while(len) {
if (((*c >= 'A') && (*c <= 'Z')) ||
((*c >= 'a') && (*c <= 'z')) ||
((*c >= '0') && (*c <= '9'))) {
if (isprint(*c)) {
if (!lastascii) {
if (*tmp) {
tmp[x++] = ',';