X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: help: worked in turbo c/c++ for dos, but not in djgpp gcc Date: 17 May 2002 08:41:24 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 22 Message-ID: References: <3ce499a4 DOT 67660852 AT news DOT adelaide DOT on DOT net> NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com David. E. Goble (degoble AT gtech) wrote: : int main(void) : { : char *name="myc"; : char *author="David. E. Goble"; : const char *title="Kangaroo Island Pistol Club - Database"; : char *date="15th of May, 2002"; : char *subtext1="+Program: "; : char *subtext2=" (c) by "; : char *text, *temp; : strcpy(text, title); You never allocate space for text. That it works in some other compiler means nothing when you have such grave bugs. Right, MartinS