Xref: utzoo comp.editors:1874 comp.unix.sysv386:701 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!dkuugin!shj From: shj@login.dkuug.dk (Stig Jacobsen) Newsgroups: comp.editors,comp.unix.sysv386 Subject: Fix for CRISP 1.9 bookmark coredumps Keywords: crisp,bookmark Message-ID: Date: 25 Sep 90 00:38:32 GMT Sender: news@slyrf.dkuug.dk Followup-To: comp.editors Distribution: comp Lines: 26 Here's a ugly, kludgy patch for the bug that makes Crisp 1.9 coredump when you try to goto a bookmark with Alt-G or the goto_bookmark built-in. Feed the below text as input to patch. == cut == *** builtin.c Tue Sep 25 02:30:07 1990 --- ../crisp/builtin.c Tue Sep 4 22:40:40 1990 *************** *** 397,402 **** --- 397,407 ---- trace_acc(); bp->reference++; # endif + /* Couldn't find the size of 'argv', but 5 is a nice number... */ + /* bookmark.goto_bookmark doesn't test argc and crashes if argv's */ + /* beyond argc contains bogus stuff. This kludges around it. */ + for (i=argc; i<5; i++) /* shj */ + argv[i].l_flags = F_NULL; /* shj */ return free_saved(saved_str, ss_cnt); } free_saved(saved_str, ss_cnt) == cut == -- Stig Jacobsen shj@login.dkuug.dk