Date: Thu, 20 Feb 1997 08:52:44 +0100 (MET) From: Guido van Rooij <guido@gvr.win.tue.nl> To: guido@gvr.win.tue.nl (Guido van Rooij) Cc: gurney_j@resnet.uoregon.edu, top@sonic.cris.net, audit-bin@FreeBSD.ORG, FreeBSD-hackers@FreeBSD.ORG Subject: Re: hmm Message-ID: <199702200752.IAA04908@gvr.win.tue.nl> In-Reply-To: <199702200739.IAA04720@gvr.win.tue.nl> from Guido van Rooij at "Feb 20, 97 08:39:32 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Guido van Rooij wrote: > > > 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. Hmm...After rereading this, I think I have it wrong :-(). That's what you get with quick answers. The check is indeed necessary. -Guido
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702200752.IAA04908>