Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!deimos!uxc!uxc.cso.uiuc.edu!fthood!egray From: egray@fthood.UUCP Newsgroups: comp.sources.bugs Subject: Patch #8 to Pcomm v1.1 Message-ID: <11200003@fthood> Date: 2 Feb 89 16:09:00 GMT Lines: 42 Nf-ID: #N:fthood:11200003:000:1034 Nf-From: fthood.UUCP!egray Feb 2 10:09:00 1989 Aaaaaaaaagghh! I hate it when I post a bug "fix" that has a bug in it! (and such an obvious one at that!) This is patch #8 to Pcomm v1.1, grrrrr... Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057 ---------------------------------------------------------------------------- *** old2/xmodem.c Thu Feb 2 10:06:31 1989 --- xmodem.c Thu Feb 2 10:05:47 1989 *************** *** 246,249 register int num; char tempfile[128], *mktemp(), buf[BUFSIZ], *s, *strrchr(); struct stat stbuf; --- 246,250 ----- register int num; char tempfile[128], *mktemp(), buf[BUFSIZ], *s, *strrchr(); + char *strcat(); struct stat stbuf; *************** *** 264,268 */ strcpy(tempfile, file); ! if (s = strrchr(tempfile)) *++s = '\0'; else --- 265,269 ----- */ strcpy(tempfile, file); ! if (s = strrchr(tempfile, '/')) *++s = '\0'; else