lrh@ukc.ac.uk (Luke) (11/05/90)
Here are my patches for Dlibs initargs, this should stop it bombing with Gemini. -----------------------cut here------------------------------------------- *** initargs.c Mon Nov 5 09:12:33 1990 --- oldinit.c Mon Nov 5 09:12:40 1990 *************** *** 118,130 **** { p = *(char **)(p+0x7C); /* get parent's saved usp */ p = *(char **)(p+0x36); /* get Pexec'd filename */ ! if(p ==NULL) ! _argv[0] = ""; ! else ! { ! _argv[0] = _sbrk(strlen(p) + 1); ! strcpy(_argv[0], p); /* copy filename */ ! } } } } --- 118,125 ---- { p = *(char **)(p+0x7C); /* get parent's saved usp */ p = *(char **)(p+0x36); /* get Pexec'd filename */ ! _argv[0] = _sbrk(strlen(p) + 1); ! strcpy(_argv[0], p); /* copy filename */ } } } -- HOW MANY TIMES HAVE YOU HEARD THIS TODAY??? Some stupid sucker says "It's great, we luv ya babe"