home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!demon!trmphrst.demon.co.uk!nikki
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Newsgroups: comp.lang.c++
- Subject: Re: Debugging output
- Message-ID: <721508490snx@trmphrst.demon.co.uk>
- Date: 11 Nov 92 12:01:30 GMT
- Sender: usenet@gate.demon.co.uk
- Reply-To: nikki@trmphrst.demon.co.uk
- Organization: Trumphurst Ltd.
- Lines: 15
- X-Mailer: cppnews $Revision: 1.20 $
-
- In article <DAVIDM.92Nov7163528@consilium.com> davidm@consilium.com (David S. Masterson) writes:
- > void
- > Tracer::SetWatch(char* name)
- > {
- > if (watch)
- > delete watch;
- >
- > watch = new char[strlen(name)];
- ^^^^^^^^^^^^ Oops !
- Ever get unexplained core dumps using this ?
- > strcpy(watch, name);
- > }
- --
- Nikki Locke,Trumphurst Ltd.(PC and Unix consultancy) nikki@trmphrst.demon.co.uk
- trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
-