delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/17/05:37:24

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: <ac2fnk$ja6$1@antares.lu.erisoft.se>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019