Re: [PATCH] lsmmc: rework string trimming

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

 



On Sun, Nov 04, 2018 at 02:21:49PM +0100, Michael Heimpold wrote:
> gcc8 complains with:
> 
> lsmmc.c: In function 'read_file':
> lsmmc.c:356:3: error: 'strncpy' accessing 4096 bytes at \
>   offsets 0 and 1 overlaps 4095 bytes at offset 1 [-Werror=restrict]
>    strncpy(&line[0], &line[1], sizeof(line));
>    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You're the third person (after Hans-Christian Noren Egtvedt and Rob
Mosher) to send me a patch addressing this issue.

@Chris: Can you please look into this that people stop patching the same
issue again and again and also to send me the patches instead of you?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux