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. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds