Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!triton!robert From: robert@triton.jpl.nasa.gov (Robert Angelino) Newsgroups: comp.lang.c Subject: Does anyone know why this is crashing?? Message-ID: <6240@mahendo.Jpl.Nasa.Gov> Date: 1 Jun 91 00:52:49 GMT Sender: news@mahendo.Jpl.Nasa.Gov Reply-To: robert@triton.JPL.NASA.GOV Organization: Technology Development Group (JPL) Lines: 49 I have this bit of code that works perfectly on a SPARC and crashes on a VMS (O/S- V5.3-A) system?! int init_files(startup_file,...) char *startup_file; { char buf[256]; #define EOPEN "Unable to open %s file \"%s\"\n" (void) print_msg(PERROR,"init_files()", sprintf(buf,EOPEN,"startup",startup_file)); . . . . . . } main() { char buf[256]; (void) strcpy(buf,"tc_startup.dat"); (void) init_files(buf,...); } It's crashing when it hits the sprintf call in init_files(). I have the following logicals set in the build env (LNM$PROCESS_TABLE) "LNK$LIBRARY" = "SYS$LIBRARY:VAXCCURSE" "LNK$LIBRARY_1" = "SYS$LIBRARY:VAXCRTL" any and all help/suggestions are welcome and will prevent further hair lose. thanks in advance -- - ------ - Robert Angelino | | | ---- \ | | ms T-1704L | | | | \ | | | 4800 Oak Grove Drive | | | | -- | | | Pasadena, CA 91109 ---| | | | \__/ | |___ robert@triton.jpl.nasa.gov \____|et |_|ropulsion |_____\aboratory (818) 354-9574