Re: [PATCH] MIPS: BCM47XX: put board detention data into init section

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

 



On 09/18/2013 04:43 PM, Geert Uytterhoeven wrote:
> On Wed, Sep 18, 2013 at 4:40 PM, Hauke Mehrtens <hauke@xxxxxxxxxx> wrote:
>> +       strncpy(bcm47xx_board.name, board_detected->name, BCM47XX_BOARD_MAX_NAME);
>> +       bcm47xx_board.name[BCM47XX_BOARD_MAX_NAME - 1] = 0;
> 
> You can use strlcpy() instead.
> 
Thanks, I haven't know of this function.

Hauke



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux