Commit 65b4a650 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix crasher in [pdinfo]

parent f04efd61
...@@ -658,7 +658,7 @@ void pdinfo_audio_listdevs(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv) ...@@ -658,7 +658,7 @@ void pdinfo_audio_listdevs(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
outdevlist, &noutdevs, outdevlist, &noutdevs,
&canmulti, &cancallback, &canmulti, &cancallback,
MAXNDEV, DEVDESCSIZE); MAXNDEV, DEVDESCSIZE);
t_atom at[4]; t_atom at[MAXNDEV];
if (s == gensym("audio-multidev-support")) if (s == gensym("audio-multidev-support"))
{ {
SETFLOAT(at, canmulti); SETFLOAT(at, canmulti);
...@@ -739,7 +739,7 @@ void pdinfo_midi_listdevs(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv) ...@@ -739,7 +739,7 @@ void pdinfo_midi_listdevs(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
sys_get_midi_devs(indevlist, &nindevs, sys_get_midi_devs(indevlist, &nindevs,
outdevlist, &noutdevs, outdevlist, &noutdevs,
MAXNDEV, DEVDESCSIZE); MAXNDEV, DEVDESCSIZE);
t_atom at[4]; t_atom at[MAXNDEV];
if (s == gensym("midi-indevlist")) if (s == gensym("midi-indevlist"))
{ {
for (i = 0; i < nindevs; i++) for (i = 0; i < nindevs; i++)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment