Re: [patch] eicon: make buffer larger

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

 



On Wed, Oct 06, 2010 at 10:44:47AM +0200, Armin Schindler wrote:
>>   927    strcpy (clients[id].drvName,     tmp);
>>   928    strcpy (clients[id].Dbg.drvName, tmp);
>>                               ^
>>                    this buffer is only 16 chars
>
> Now I understand. You are right. So the fix would be to change these  
> strcpy() to e.g. strncpy() or similar.
>

We need more than 16 characters to store the information.  What is the
problem with just making the buffer larger?

regards,
dan carpenter

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


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux