logutils: Make sure we look at the right string when checking for *.log
commit89cbf005fac44bc1b08bce8e62595770e711e76d
authorAndreas Ericsson <ae@op5.se>
Fri, 11 Dec 2009 14:12:06 +0000 (11 15:12 +0100)
committerAndreas Ericsson <ae@op5.se>
Fri, 11 Dec 2009 14:12:06 +0000 (11 15:12 +0100)
tree761ad8806cd072bfc74ab10d00fa08c1aeb53655
parent1ec0603322b7d29a8569643350630b3a10f67eed
logutils: Make sure we look at the right string when checking for *.log

Previously we took the strlen() of basename(path) but used path and
the calculated stringlen of the path to check if the path ended in
.log. Obviously, this was quite a bad move.

This patch fixes it.

Signed-off-by: Andreas Ericsson <ae@op5.se>
logutils.c