From 116783794ea3af6318bde312505ee10e1ad46eb7 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 4 Jun 2009 23:32:09 +0000 Subject: changed macro to the standard auto __gnu_linux__ and fixed memory allocation bug svn path=/trunk/externals/ext13/; revision=11670 --- ossmixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ossmixer.c') diff --git a/ossmixer.c b/ossmixer.c index d6d639e..7617dce 100644 --- a/ossmixer.c +++ b/ossmixer.c @@ -1,5 +1,5 @@ -#ifdef LINUX +#ifdef __gnu_linux__ #include "ext13.h" #include "m_pd.h" @@ -34,7 +34,7 @@ typedef struct _ossmixer static void *ossmixer_new(t_floatarg f) { - char* devicename; + char devicename[FILENAME_MAX]; int fd = -1; t_ossmixer *x = (t_ossmixer *)pd_new(ossmixer_class); outlet_new(&x->x_obj, &s_bang); -- cgit v1.2.1