Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 23 Nov 2000 18:44:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 23 Nov 2000 18:44:20 -0500 Received: from lox.sandelman.ottawa.on.ca ([209.151.24.2]:22780 "EHLO lox.sandelman.ottawa.on.ca") by vger.kernel.org with ESMTP id ; Thu, 23 Nov 2000 18:44:12 -0500 Message-Id: <200011232117.eANLHo003458@sandelman.ottawa.on.ca> To: Kernel Mailing List Subject: Re: Too long network device names corrupts kernel In-Reply-To: Your message of "Thu, 23 Nov 2000 17:02:10 +0100." Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Thu, 23 Nov 2000 16:17:23 -0500 From: Michael Richardson Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Tobias" == Tobias Ringstrom writes: Tobias> Btw, does anyone know of a C function that works like strncpy, but does Tobias> add a terminating null character, event if the string does not fit, ro Tobias> does one have to do str[5]=0 first, and then strncpy(str,src,4)? str[0]=0; strncat(str, src, 4); Works as you want. ] Train travel features AC outlets with no take-off restrictions|gigabit is no[ ] Michael Richardson, Solidum Systems Oh where, oh where has|problem with[ ] mcr@solidum.com www.solidum.com the little fishy gone?|PAX.port 1100[ ] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/