[svn-commits] trunk - r285 /trunk/q931.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Jan 5 13:33:33 CST 2006
Author: mattf
Date: Thu Jan 5 13:33:32 2006
New Revision: 285
URL: http://svn.digium.com/view/libpri?rev=285&view=rev
Log:
Add tzanger's patch which (among other things) prints whitespace in IE dumps
Modified:
trunk/q931.c
Modified: trunk/q931.c
URL: http://svn.digium.com/view/libpri/trunk/q931.c?rev=285&r1=284&r2=285&view=diff
==============================================================================
--- trunk/q931.c (original)
+++ trunk/q931.c Thu Jan 5 13:33:32 2006
@@ -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 @@
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++] = ',';
More information about the svn-commits
mailing list