From owner-freebsd-hackers Mon Nov 13 23:52:09 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA06701 for hackers-outgoing; Mon, 13 Nov 1995 23:52:09 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id XAA06672 for ; Mon, 13 Nov 1995 23:51:52 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id IAA29060; Tue, 14 Nov 1995 08:48:47 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id IAA25553; Tue, 14 Nov 1995 08:48:47 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id IAA00224; Tue, 14 Nov 1995 08:32:16 +0100 From: J Wunsch Message-Id: <199511140732.IAA00224@uriah.heep.sax.de> Subject: Re: index() doesn't handle NULL strings To: alexis@ww.net Date: Tue, 14 Nov 1995 08:32:16 +0100 (MET) Cc: freebsd-hackers@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199511140055.DAA04234@unicorn.ww.net> from "Alexis Yushin" at Nov 14, 95 03:55:56 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 553 Sender: owner-hackers@freebsd.org Precedence: bulk As Alexis Yushin wrote: > > Perhaps it is out-of-date, because I use FreeBSD-2.0.5, > but if it is not it should be fixed. If it ain't broken, don't fix it. NULL pointers do not point to a valid string, therefore string functions cannot be applied to them. This has been discussed to death here, and we generally reject hacking the operating system where fixing the application is TRT. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)