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