changeset 4922:619a8032fdd2

Buggfix for buffer overflow calculation in plugins
author anders
date Sun, 03 Mar 2002 12:53:26 +0000
parents a8ca1b9c586f
children 3cc0f4938be1
files libao2/ao_plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_plugin.c	Sun Mar 03 11:44:53 2002 +0000
+++ b/libao2/ao_plugin.c	Sun Mar 03 12:53:26 2002 +0000
@@ -224,7 +224,7 @@
 static int play(void* data,int len,int flags){
   int l,i=0;
   // Limit length to avoid over flow in plugins
-  int tmp = driver()->get_space();
+  int tmp = get_space();
   int ret_len =(tmp<len)?tmp:len;
   if(ret_len){
     // Filter data