MidiDriver.cpp:76: possible bad size ?

Bug #1593171 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
harmonySEQ
New
Undecided
Unassigned

Bug Description

[MidiDriver.cpp:76]: (warning) Size of pointer 'pfd' used instead of size of its data.

Source code is

   pfd = (struct pollfd*)alloca(npfd*sizeof(struct pollfd*));

Maybe better code

   pfd = (struct pollfd *) alloca( npfd * sizeof(struct pollfd));

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.