From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262029AbTEYLui (ORCPT ); Sun, 25 May 2003 07:50:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262030AbTEYLui (ORCPT ); Sun, 25 May 2003 07:50:38 -0400 Received: from quicksilver.ukc.ac.uk ([129.12.21.11]:18048 "EHLO quicksilver.ukc.ac.uk") by vger.kernel.org with ESMTP id S262029AbTEYLuh (ORCPT ); Sun, 25 May 2003 07:50:37 -0400 To: Linus Torvalds Cc: Ben Collins , Patrick Mochel , Subject: Re: Resend [PATCH] Make KOBJ_NAME_LEN match BUS_ID_SIZE References: From: Adam Sampson Organization: Don't wake me, 'cos I'm dreaming, and I might just stay inside again today. Date: 25 May 2003 13:03:06 +0100 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-UKC-Mail-System: No virus detected Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds writes: > How about just adding a sane > int copy_string(char *dest, const char *src, int len) [...] If you're going to do this, it might make sense to call it "strlcpy" for consistency with the OpenBSD-introduced function of the same name that's getting included in a lot of userspace these days... -- Adam Sampson