Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv31370/formats

Modified Files:
        format_sln.c 
Log Message:
fix 2 bugs (bug #4518)


Index: format_sln.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_sln.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- format_sln.c        7 Jun 2005 17:06:33 -0000       1.9
+++ format_sln.c        17 Jun 2005 13:39:34 -0000      1.10
@@ -175,7 +175,7 @@
        }
        /* always protect against seeking past begining. */
        offset = (offset < min)?min:offset;
-       return lseek(fs->fd, offset, SEEK_SET);
+       return lseek(fs->fd, offset, SEEK_SET) / 2;
 }
 
 static int slinear_trunc(struct ast_filestream *fs)
@@ -187,7 +187,7 @@
 {
        off_t offset;
        offset = lseek(fs->fd, 0, SEEK_CUR);
-       return offset;
+       return offset / 2;
 }
 
 static char *slinear_getcomment(struct ast_filestream *s)

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

Reply via email to