diff src/sgiplay.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 8eaf7971accc
children a4f53d9b3154
line wrap: on
line diff
--- a/src/sgiplay.c	Mon Aug 13 09:54:24 2007 +0200
+++ b/src/sgiplay.c	Mon Aug 13 09:55:28 2007 +0200
@@ -324,7 +324,7 @@
   audio_port_state[2] = make_int (saved_device_state[5]);
   record_unwind_protect (restore_audio_port,
 			 Fvector (3, &audio_port_state[0]));
-      
+
   ac = initialize_audio_port (& desc);
   desc = * ac;
   return ac;
@@ -397,7 +397,7 @@
   short * obuf, * bufp;
   long n_samples = limit - data;
 
-  obuf = alloca (n_samples * sizeof (short));
+  obuf = alloca_array (short, n_samples);
   bufp = &obuf[0];
 
   while (data < limit)
@@ -436,7 +436,7 @@
   long * obuf, * bufp;
   long n_samples = limit-data;
 
-  obuf = alloca (n_samples * sizeof (long));
+  obuf = alloca_array (long, n_samples);
   bufp = &obuf[0];
 
   while (data < limit)