Cheers,
Richard
--
Richard Kolkovich
http://www.sigil.org
PGP Key: 0x9E54EF59 (http://pgp.mit.edu)
I can confirm the crash on FreeBSD, and it doesn't crash on Linux
(Ubuntu 10.04).
The documentation is for strtok_r is incomplete. Both FreeBSD and
glibc document the behavior of the return value, but not the value of
the context pointer ('last' in freebsd, 'saveptr' in glibc).
I wrote some test code: https://gist.github.com/754661
Summary: Nobody agrees on behavior. Frankly, I think glibc's behavior
is correct, here, but since nobody documents it, I'll work around it.
-Jordan
New version with a fix:
http://semicomplete.googlecode.com/files/keynav-0.20101224.3183.tar.gz
I added error checking along with this -
% ./keynav
Incomplete configuration line. Missing commands: 'ctrl+a'
Error with config /home/jls//.keynavrc:18: ctrl+a
Can you test and confirm?
-Jordan