linux-mips
[Top] [All Lists]

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

To: Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH] MIPS: BCM47XX: put board detention data into init section
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Wed, 18 Sep 2013 16:56:18 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>, Linux MIPS Mailing List <linux-mips@linux-mips.org>
In-reply-to: <CAMuHMdUKHEBBCio2ixu04i8dc-mBvK3fD8VuXr2y1GSV5zrh3A@mail.gmail.com>
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> <CAMuHMdUKHEBBCio2ixu04i8dc-mBvK3fD8VuXr2y1GSV5zrh3A@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8
On 09/18/2013 04:43 PM, Geert Uytterhoeven wrote:
> 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.
> 
Thanks, I haven't know of this function.

Hauke


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