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

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


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.95.2.9
retrieving revision 1.95.2.10
diff -u -d -r1.95.2.9 -r1.95.2.10
--- zaptel.c    31 Aug 2005 21:43:39 -0000      1.95.2.9
+++ zaptel.c    2 Sep 2005 20:27:45 -0000       1.95.2.10
@@ -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;
 }

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to