From: Sascha Zapf Newsgroups: comp.os.msdos.djgpp Subject: Re: TDirListBox Date: Wed, 18 Aug 1999 22:37:07 +0100 Lines: 38 Distribution: world Message-ID: <37BB2783.E9CE8212@netcologne.de> References: <37B9DC69 DOT 3A742385 AT netcologne DOT de> <37BAAEAB DOT C36CEC5F AT inti DOT gov DOT ar> NNTP-Posting-Host: dial7-142.netcologne.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netcologne.de 935008717 21187 195.14.235.142 (18 Aug 1999 20:38:37 GMT) X-Complaints-To: usenet AT news DOT netcologne DOT de NNTP-Posting-Date: 18 Aug 1999 20:38:37 GMT X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW0321j (Win95; I) X-Accept-Language: de-DE,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com salvador schrieb: > Sascha Zapf wrote: > > > char StartDir[80]; > > The samoe Error if i use "char StartDir[PATH_MAX] > 80 is not enough for a path, be careful. > > > strcpy("c:\\",StartDir); > > Sorry, that was Online written, just for the posting...The Original-Dir-String came from an External Function. > Ough!!! you are copying garbage to the code!! strcpy(DESTINATION,SOURCE)!!!! > > SET > > -- > Salvador Eduardo Tropea (SET). (Electronics Engineer) > Visit my home page: http://welcome.to/SetSoft or > http://www.geocities.com/SiliconValley/Vista/6552/ > Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org > set AT ieee DOT org set-soft AT bigfoot DOT com > Address: Curapaligue 2124, Caseros, 3 de Febrero > Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 Sascha