Skip to content
Snippets Groups Projects
Commit 65b4a650 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix crasher in [pdinfo]

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