Get rid of strsep in cache.c, avoid useless copy
commit33357c6940d204acac23d9e7ae369d071ce61a01
authorYann Dirson <ydirson@altern.org>
Sat, 17 Jun 2006 12:16:38 +0000 (17 14:16 +0200)
committerYann Dirson <ydirson@altern.org>
Sat, 17 Jun 2006 12:16:38 +0000 (17 14:16 +0200)
tree961d5a5bc5cc60189ce42fe390842546d530fc20
parent5991e8b0acf1dbe3487c1f246a1d215b346a61f0
Get rid of strsep in cache.c, avoid useless copy

This destructive parsing is bad, as shown by the fact that its mere
use in the code makes tuning the parser a hell.  So let's drop it
before going further.

This also removes the need to memcpy the buffer, since we won't be
modifying it.

Note: there are also loads of strsep() calls in cvs_direct.c to get rid of.
cache.c