BUG 2403: endless loop (variable rename gone wrong).

This commit is contained in:
Enno Rehling 2017-12-31 16:36:59 +01:00
parent 643c989cf9
commit 01dd489b7a
2 changed files with 2 additions and 2 deletions

View file

@ -316,7 +316,7 @@ bool checkpasswd(const faction * f, const char *passwd)
if (!passwd) return false; if (!passwd) return false;
if (f->_password && password_verify(f->_password, passwd) == VERIFY_FAIL) { 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 false;
} }
return true; return true;

View file

@ -2230,7 +2230,7 @@ report_plaintext(const char *filename, report_context * ctx,
(int)str_strlcpy(bufp, LOC(f->locale, resourcename(rm->rtype, 0)), size); (int)str_strlcpy(bufp, LOC(f->locale, resourcename(rm->rtype, 0)), size);
if (wrptr(&bufp, &size, bytes) != 0) if (wrptr(&bufp, &size, bytes) != 0)
WARN_STATIC_BUFFER(); WARN_STATIC_BUFFER();
++m; ++rm;
if (rm->number) if (rm->number)
bytes = (int)str_strlcpy(bufp, ", ", size); bytes = (int)str_strlcpy(bufp, ", ", size);
if (wrptr(&bufp, &size, bytes) != 0) if (wrptr(&bufp, &size, bytes) != 0)