Commit Diff


commit - ccc9e1baa41c2b81d641d87acaefbf07eb499ad4
commit + abf280d5bd5648817135c487a19941b2ef4b0701
blob - 98cd29a367047323d1633f57f2473443075215d9
blob + d0c56306698bbe599900073690a127e4e06c8a3a
--- src/ngircd/conn-encoding.c
+++ src/ngircd/conn-encoding.c
@@ -125,7 +125,7 @@ Convert_Message(iconv_t Handle, char *Message)
 	if (iconv(Handle, &Message, &in_left, &out, &out_left) == (size_t)(-1)) {
 		/* An error occurred! */
 		LogDebug("Error converting message encoding!");
-		strlcpy(Encoding_Buffer, Message, sizeof(Encoding_Buffer));
+		strlcpy(out, Message, sizeof(Encoding_Buffer));
 		iconv(Handle, NULL, NULL, NULL, NULL);
 	} else
 		*out = '\0';