cvs: fix recently introduced, repeatable segfault
authorJohn Marino <draco@marino.st>
Sun, 8 May 2011 19:42:46 +0000 (21:42 +0200)
committerJohn Marino <draco@marino.st>
Sun, 8 May 2011 19:42:46 +0000 (21:42 +0200)
commit4e035039aa4f8f0cf53cabd9d68997ddac0a211c
treefa77a8cf1ea5feb8e7f2c7fb8508b8c54cd2662d
parent3bdc405fb463d08042ee40ff52078233683f7f61
cvs: fix recently introduced, repeatable segfault

In specific involving local cvs repositories, the newly refactored cvs
would segfault.  It was traces back to libc's version of delim.  The
previous version of cvs provided its own functions like getline and
delim, but the recent change choose to use libc instead.

This "fix" basically goes back to the provided version of delim.  There
might be something wrong with the libc version.  It would work for a
while, but eventually it segfaulted on a memcpy command.

reported-by: swildner
gnu/usr.bin/cvs/lib/Makefile
gnu/usr.bin/cvs/lib/config.h.proto