Minor bugfix in log.c.