diff --git a/doc/RELEASE-NOTES.md b/doc/RELEASE-NOTES.md index 5cb8e4217..59cb1830a 100644 --- a/doc/RELEASE-NOTES.md +++ b/doc/RELEASE-NOTES.md @@ -67,8 +67,8 @@ in progress and may not always be a stable version. (which was released on June 18 2024 and shipped with UnrealIRCd 6.1.7 to be used as a fallback for systems which don't have the c-ares library installed). -* Websockets of type 'text' had incoming IRC messages cut off too early - when message tags were in use. Type 'binary' was unaffected. +* Websockets of type 'text' had IRC messages from server to client cut off + too early when message tags were in use. Type 'binary' was unaffected. * The [require authentication { }](https://www.unrealircd.org/docs/Require_authentication_block) was broken in 6.1.7.*. * [JSON-RPC](https://www.unrealircd.org/docs/JSON-RPC) call `spamfilter.get` diff --git a/src/utf8.c b/src/utf8.c index 8020418e7..1cba1d801 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -220,7 +220,7 @@ char *unrl_utf8_make_valid(const char *str, char *outputbuf, size_t outputbuflen p++; if (strlen(p) > 510) { - outputbuf[510] = '\0'; + p[510] = '\0'; fix_line = 1; } }