From owner-freebsd-hackers Wed Feb 19 23:40:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA26450 for hackers-outgoing; Wed, 19 Feb 1997 23:40:41 -0800 (PST) Received: from gvr.win.tue.nl (root@gvr.win.tue.nl [131.155.210.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA26416; Wed, 19 Feb 1997 23:40:04 -0800 (PST) Received: (from guido@localhost) by gvr.win.tue.nl (8.8.5/8.8.2) id IAA04720; Thu, 20 Feb 1997 08:39:32 +0100 (MET) From: Guido van Rooij Message-Id: <199702200739.IAA04720@gvr.win.tue.nl> Subject: Re: hmm In-Reply-To: from John-Mark Gurney at "Feb 19, 97 02:31:03 pm" To: gurney_j@resnet.uoregon.edu Date: Thu, 20 Feb 1997 08:39:32 +0100 (MET) Cc: top@sonic.cris.net, audit-bin@FreeBSD.ORG, FreeBSD-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > It seems a bit strange to me. Just like the first part of the line > > underneath btw: > > if (*p != '\0' && p[strlen(p) - 1] == '[') { > > ^^^^^^^^^^ > > that makes sure that the strlen(p) > 0... you wouldn't want to access > p[-1] would you?? > > hope this helps... ttyl.. > But p points to argv[0]. According to me that is always non-empty. -Guido