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 Content-Length: 718 Lines: 14 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/