Article View: comp.sources.bugs
Article #214Reactive Keyboard Segmentation Fault.
From: Mark James
Date: Fri, 27 Oct 1989 04:45
Date: Fri, 27 Oct 1989 04:45
26 lines
908 bytes
908 bytes
There is a bug in the posted source for the Reactive Keyboard which causes
it to dump core on some systems. To fix it, replace :
In file "parse_keys.c" line 569
while(*b){
if((*b<32) || (*b==127)){
*a++='^';
*a++=(*b==127)?b++,'?':(*b++)+'@';
}
*a++ = *b++;
}
with
while(*b){
if((*b<32) || (*b==127)){
*a++='^';
*a++=(*b==127)?b++,'?':(*b++)+'@';
}
-> else *a++ = *b++;
}
Many thanks to Gert Florijn for finding a fix to this problem.
M.
jamesm@cpsc.ucalgary.ca
Technical Details
Message-ID:
<1971@cs-spool.calgary.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!ubc-cs!alberta!calgary!cpsc!jamesmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!ubc-cs!alberta!calgary!cpsc!jamesm From: jamesm@cpsc.ucalgary.ca (Mark James) Newsgroups: comp.sources.bugs Subject: Reactive Keyboard Segmentation Fault. Message-ID: <1971@cs-spool.calgary.UUCP> Date: 27 Oct 89 04:45:26 GMT Sender: news@calgary.UUCP Lines: 26 Keywords: RK Reactive Keyboard