lib: fix string comparaison

commit 27602007 broke the implementation of < when comparing strings
of different lengths.

Signed-off-by: Jean Privat <privat@ciara.pryen.org>