dslinux/user/wfcdump wfcdump.c

Stefan Sperling stsp at stsp.in-berlin.de
Fri Aug 4 17:17:38 CEST 2006


On Fri, Aug 04, 2006 at 02:50:06PM +0000, pepsiman wrote:
> Add some escaping
>
> +	putchar('"');
> +	for ( i = 0 ; essid[i] ; i++ )
> +	{
> +	    if ( essid[i] == '\\' )
> +		printf("\\\\");
> +	    else if ( essid[i] == '\"' )
> +		printf("\\\"");
> +	    else
> +		putchar(essid[i]);
> +	}
> +	putchar('"');

What about escaping all characters but alphanumeric ones?
-- 
stefan
http://stsp.in-berlin.de                                 PGP Key: 0xF59D25F0



More information about the dslinux-devel mailing list