Search Linux Wireless

Re: [PATCH] wireless: consolidate on a single escape_essid implementation

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

 



On Thu, 2008-09-25 at 06:49 +0200, Johannes Berg wrote:
> On Thu, 2008-09-25 at 06:46 +0200, Johannes Berg wrote:
> 
> > > +	essid_len = min(essid_len, (u8) IW_ESSID_MAX_SIZE);
> > > +	while (essid_len--) {
> > > +		if (*s == '\0') {
> > > +			*d++ = '\\';
> > > +			*d++ = '0';
> > > +			s++;
> > > +		} else {
> > > +			*d++ = *s++;
> > > +		}
> > > +	}
> > > +	*d = '\0';
> > > +	return escaped;
> > > +}
> > > +EXPORT_SYMBOL(escape_essid);
> 
> Also, it seems like this should escape any non-printable characters, not
> just NUL?

Yes, it should escape any _non-ASCII_ characters.

Dan


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux