jove 4.9 (filter-region dumps core with GCC)
Rob McMahon
cudcv at warwick.ac.uk
Sat Sep 10 21:09:05 AEST 1988
The filter-region command in jove uses mktemp("...") which dumps core when
compiled with GCC or any compiler that puts strings in read-only memory. Fix:
RCS file: proc.c,v
retrieving revision 1.1
diff -c -r1.1 proc.c
*** /tmp/,RCSt1a02006 Sat Sep 10 12:07:58 1988
--- proc.c Sat Sep 10 11:24:22 1988
***************
*** 748,754 ****
{
Mark *m = CurMark();
#ifndef MSDOS
! char *tname = mktemp("/tmp/jfilterXXXXXX"),
combuf[128];
#endif /* MSDOS */
Window *save_wind = curwind;
--- 748,755 ----
{
Mark *m = CurMark();
#ifndef MSDOS
! static char tnambuf[20];
! char *tname,
combuf[128];
#endif /* MSDOS */
Window *save_wind = curwind;
***************
*** 760,765 ****
--- 761,768 ----
File *fp;
#ifndef MSDOS
+ strcpy (tnambuf, "/tmp/jfilterXXXXXX");
+ tname = mktemp(tnambuf);
fp = open_file(tname, iobuff, F_WRITE, COMPLAIN, QUIET);
#else /* MSDOS */
p0 = openforpipe();
--
UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037
JANET: cudcv at uk.ac.warwick ARPA: cudcv at warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England
More information about the Comp.sources.bugs
mailing list