Date: Sat, 22 Feb 1997 12:35:09 -0800 (PST) From: Alex Belits <abelits@phobos.illtel.denver.co.us> To: Terry Lambert <terry@lambert.org> Cc: guido@gvr.win.tue.nl, dillon@best.net, gurney_j@resnet.uoregon.edu, top@sonic.cris.net, audit-bin@FreeBSD.ORG, FreeBSD-hackers@FreeBSD.ORG Subject: Re: hmm Message-ID: <Pine.LNX.3.95.970222123316.30792B-100000@phobos.illtel.denver.co.us> In-Reply-To: <199702221811.LAA04865@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Feb 1997, Terry Lambert wrote: > > with p="" > > *p != '\0' && p[strlen(p) - 1] == '[' _still_ will read a byte p[-1]. > > What? > > IF p = "" > THEN *p = '\0' > > by definition of ""... but p[strlen(p) - 1] will be p[-1] Optimization done by compiler may skip it, but depending on that will be rather dangerous. -- Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.970222123316.30792B-100000>