linux-mips
[Top] [All Lists]

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

To: Hauke Mehrtens <hauke@hauke-m.de>
Subject: Re: [PATCH] MIPS: BCM47XX: put board detention data into init section
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed, 18 Sep 2013 16:43:52 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>, Linux MIPS Mailing List <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=fMF28y837wZ3rXqiXBbWNUXPgjoYZesvw9en0pLYjaE=; b=LT7ih7YLYUc6fFmKn4mmZ7T+fMkFp+HQWKN+p5YMmCFuInmDqgTqLgtrIc1R19z3Rv sQx8DdUjbGFtKpV0oV8//bF2zOrNtkHXuNzMrPuDoQkw+gI+ARIsPnSjL+vqJKw985zB M10yR31QCh1bEFqpcyfgUUiJTN4NJ5mhvXkkTMbJwhM6tv+Eq7aeJTjheOhOO7BHJpJm fg1V4i2jCId8md+1Jc4tGp9ErfpAlAtlmG1ztYOYdtiTqZ9hWRlLm3oAcIjW+RAq/R5Y M5eMkY2JqDd0KOq7ZnP7CYsIkHIG4IAWQg7NIqcEHAw/hlLn8mJhSf/j6WriStXVdAno 0q2g==
In-reply-to: <1379515235-29161-1-git-send-email-hauke@hauke-m.de>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1379515235-29161-1-git-send-email-hauke@hauke-m.de>
Sender: linux-mips-bounce@linux-mips.org
On Wed, Sep 18, 2013 at 4:40 PM, Hauke Mehrtens <hauke@hauke-m.de> 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@linux-m68k.org

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

<Prev in Thread] Current Thread [Next in Thread>