RE: [AD] Midi input driver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Why isn't strdup() used here?


> -----Original Message-----
> From: alleg-developers-admin@xxxxxxxxxx [mailto:alleg-
> developers-admin@xxxxxxxxxx] On Behalf Of aj
> Sent: Monday, August 02, 2004 6:50 AM
> To: alleg-developers@xxxxxxxxxx
> Subject: Re: [AD] Midi input driver
> 
> At 11:09 PM 2/08/2004, you wrote:
> >On Monday 02 August 2004 14:58, aj wrote:
> > > i am *very* experienced in the win32 midi input system.
> > > i am NOT experienced in the allegro midi system.
> > >
> > > but i can review your patches, if you need a 2nd  opinion.
> >
> >Please do.
> 
> 
> 
> line 67 of the patch..
> 
> 66:+     driver->ascii_name = malloc(strlen(caps_in.szPname)+1);
> 67:+     strcpy((char*)driver->ascii_name, caps.szPname);
> 
> i think the caps.  should be  caps_in.
> 
> 
> aj.
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes
on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source
Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/