Search Linux Wireless

Re: [patch] ath6kl: use a larger buffer for debug output

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

 



On Mon, Nov 21, 2011 at 06:55:11PM +0200, Kalle Valo wrote:
> >>  	len = snprintf(buf, sizeof(buf), "%u %u\n", ar->listen_intvl_t,
> >>  					ar->listen_intvl_b);
> >> +	len = min(sizeof(buf), len);
> > 
> > Maybe that should be scnprintf instead then?
> 
> Yeah, I agree. And most likely debug.c has even more cases where
> scnprintf() is needed.
> 

Yes yes.  Obviously.  I sent the patch at 5 pm on Friday and lost
track of it for a bit.  I'll send a fixed version tomorrow morning.

regards,
dan carpenter

Attachment: signature.asc
Description: Digital signature


[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