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:
5
q931.c
5
q931.c
@@ -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++] = ',';
|
||||
|
||||
Reference in New Issue
Block a user