Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!homxb!antique!cjp From: cjp@antique.UUCP (Charles Poirier) Newsgroups: comp.sys.amiga Subject: Re: WBarg problems Message-ID: <2008@antique.UUCP> Date: 16 Dec 87 20:53:30 GMT References: <1084@raybed2.UUCP> Reply-To: cjp@vax135.UUCP (Charles Poirier) Organization: AT&T Bell Labs, Holmdel, NJ Lines: 18 In article <1084@raybed2.UUCP> lah@raybed2.UUCP (LANCE HOLMES) writes: >who's icon had been clicked on. The program would then take the filname >string and concatinate it with the string "Newcli FROM " to look like >strcat("Newcli FROM ",filename) . This string would next be the argument Simple. You can't just strcat onto the end of a string constant; there is no storage out at the string's end to put the filename in. You want something like char buf[100]; sprintf(buf, "%s%s", "Newcli FROM ", filename); Hope this helps. -- Charles Poirier (decvax,ihnp4,attmail)!vax135!cjp "Docking complete... Docking complete... Docking complete..."