Package: soundtracker

Apply this patch from Michael Krause.


> 
> Here's a fix for the XM loader (fixes a crash of the sample editor
> reported by a user)
> 
> --- soundtracker-0.6.7/app/xm.c 2004-01-11 16:10:58.000000000 +0100
> +++ app/xm.c    2005-05-07 14:02:36.000000000 +0200
> @@ -314,7 +314,11 @@
>      for(i = 0; i < num_samples; i++) {
>         s = &samples[i];
>         if(s->sample.length == 0) {
> -           s->sample.data = NULL;
> +           /* no sample in this slot, delete all info except sample name */
> +           char name[23];
> +           strncpy(name, s->name, 22);
> +           name[22] = 0;
> +           st_clean_sample(s, (const char*)&name);
>             continue;
>         }
>         s->treat_as_8bit = !(s->sample.looptype & 0x10);
> 
> Gruß,
> -- 
> /* michael */
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
> _______________________________________________
> Soundtracker-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/soundtracker-discuss
> 

Reply via email to