From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e1ee64db7e032a4e X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-06-13 04:28:43 PST Path: gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!lll-winken!uunet!sdrc!wggabb From: wggabb@sdrc.COM (Rob Gabbard) Newsgroups: comp.sys.dec Subject: strcat(foo,NULL) core dumps on Ultrix Keywords: dec c strcat Message-ID: <966@sdrc.COM> Date: 11 Jun 91 12:34:21 GMT Organization: SDRC, Cincinnati A call to strcat with NULL as the second argument core dumps with a memory fault on Ultrix. Why would anyone want to do this anyway ? How about.... strcat(foo,getenv("FOO")) instead of if (getenv("FOO")) strcat(foo,getenv("FOO")); Actually, just coding strcat(foo,NULL) will dump. Anyone run into this ? Am I doing a no-no here. -- The statements above are my own and do not neccesarily reflect the opinion of my employer. ------------------------------------------------------------------------------- Rob Gabbard wggabb@sdrc.sdrc.com Technical Development Engineer Structural Dynamics Research Corporation