[FIX] Do NOT use strlen in a loop

Never. Do. This. Never. It should never cross your mind. Doing so will
punish you. Basic computer science concepts will tell you it's O(n^2).
And it WILL actually matter. Never. Never. Never. Never. Never. Never.
            NEVER FUCKING EVER DO THAT EVER AGAIN.
            NEVER FUCKING EVER DO THAT EVER AGAIN.
            NEVER FUCKING EVER DO THAT EVER AGAIN.
            NEVER FUCKING EVER DO THAT EVER AGAIN.
            NEVER FUCKING EVER DO THAT EVER AGAIN.
Anyways, also fixes licensing year. On est en octobre et il comprend
toujours pas qu'on est plus en 2023.
This commit is contained in:
LDA 2024-10-11 19:49:19 +02:00
commit 147e430a47
5 changed files with 33 additions and 21 deletions

View file

@ -79,7 +79,7 @@ Main(Array *args, HashMap *env)
);
ParseePrintASCII();
Log(LOG_INFO, "=======================");
Log(LOG_INFO, "(C)opyright 2023 LDA");
Log(LOG_INFO, "(C)opyright 2024 LDA");
Log(LOG_INFO, "(This program is free software, see LICENSE.)");
LogConfigIndent(LogConfigGlobal());
@ -153,7 +153,6 @@ Main(Array *args, HashMap *env)
}
}
Free(opts);
ParseeSetThreads(xmpp, http);
}
if (verbose >= PARSEE_VERBOSE_COMICAL)
@ -167,6 +166,7 @@ Main(Array *args, HashMap *env)
{
goto end;
}
ParseeSetThreads(xmpp, http);
Log(LOG_NOTICE, "Connecting to XMPP...");