Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 1997 08:39:32 +0100 (MET)
From:      Guido van Rooij <guido@gvr.win.tue.nl>
To:        gurney_j@resnet.uoregon.edu
Cc:        top@sonic.cris.net, audit-bin@FreeBSD.ORG, FreeBSD-hackers@FreeBSD.ORG
Subject:   Re: hmm
Message-ID:  <199702200739.IAA04720@gvr.win.tue.nl>
In-Reply-To: <Pine.BSF.3.95q.970219142947.405n-100000@hydrogen.nike.efn.org> from John-Mark Gurney at "Feb 19, 97 02:31:03 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702200739.IAA04720>