history: no need for nul-termination

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
search: fix memory corruption

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>