From 01dd489b7af807d42eb71594ce15f006ed08d342 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 31 Dec 2017 16:36:59 +0100 Subject: [PATCH] BUG 2403: endless loop (variable rename gone wrong). --- src/kernel/faction.c | 2 +- src/report.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/faction.c b/src/kernel/faction.c index 49186699d..f56285b6b 100755 --- a/src/kernel/faction.c +++ b/src/kernel/faction.c @@ -316,7 +316,7 @@ bool checkpasswd(const faction * f, const char *passwd) if (!passwd) return false; if (f->_password && password_verify(f->_password, passwd) == VERIFY_FAIL) { - log_warning("password check failed: %s", factionname(f)); + log_info("password check failed: %s", factionname(f)); return false; } return true; diff --git a/src/report.c b/src/report.c index c431f1b1b..e154ab045 100644 --- a/src/report.c +++ b/src/report.c @@ -2230,7 +2230,7 @@ report_plaintext(const char *filename, report_context * ctx, (int)str_strlcpy(bufp, LOC(f->locale, resourcename(rm->rtype, 0)), size); if (wrptr(&bufp, &size, bytes) != 0) WARN_STATIC_BUFFER(); - ++m; + ++rm; if (rm->number) bytes = (int)str_strlcpy(bufp, ", ", size); if (wrptr(&bufp, &size, bytes) != 0)