softplay cvs warning cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



C.Y.M schrieb:

> --- softplay/FileIndex.c.orig	2006-03-12 12:23:23.000000000 -0800
> +++ softplay/FileIndex.c	2006-04-01 21:44:37.000000000 -0800
> @@ -95,7 +95,7 @@
>  	
>  	skipSpaces(pos);
>          printf("duration '%s' \n",pos);
> -        if ( !*pos || sscanf(pos,"%100[0-9]%n",&tmp,&len) == 0 ) {
> +        if ( !*pos || sscanf(pos,"%100[0-9]%n",(char *)&tmp,&len) == 0 ) {
>                  printf("EXTINF Could not parse duration \"%s\". Ignoring.\n",pos);
>                  return;
>          };

Hmm, that one is actually a bug, that should read:

if ( !*pos || sscanf(pos,"%100[0-9]%n",tmp,&len) == 0 ) {

I guess there is some sense in compiler warnings ;-)

Thank you for the patch, I applied a slightly modified version fixing
the bug above.

Bye,
Martin


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux