[Asterisk-cvs] zaptel zaptel.c,1.113,1.114

kpfleming kpfleming
Fri Sep 2 16:25:10 CDT 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv14277

Modified Files:
	zaptel.c 
Log Message:
make 'cat /proc/zaptel/1' not fail with ztdummy loaded (issue #5069)


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- zaptel.c	31 Aug 2005 21:41:37 -0000	1.113
+++ zaptel.c	2 Sep 2005 20:26:02 -0000	1.114
@@ -571,6 +571,11 @@
 			}
 		}
 	}
+	if ( len <= off ) /* If everything printed so far is before beginning of request */
+	{
+		off -= len;
+		len = 0;
+	}
 	*start = page + off;
 	return len;
 }




More information about the svn-commits mailing list