]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn-encoding.c
Code cleanup, remove blank lines
[ngircd-alex.git] / src / ngircd / conn-encoding.c
index 71ab58848a5aa87d258f85156ab98021d5c0cd7a..b827d02ae4d4abe78f67007be5411bd2f218e1f4 100644 (file)
@@ -38,7 +38,6 @@ char Encoding_Buffer[COMMAND_LEN];
 
 char *Convert_Message PARAMS((iconv_t Handle, char *Message));
 
-
 /**
  * Set client character encoding on a connection.
  *
@@ -123,9 +122,9 @@ Convert_Message(iconv_t Handle, char *Message)
        out_left = sizeof(Encoding_Buffer) - 1;
 
        if (iconv(Handle, &Message, &in_left, &out, &out_left) == (size_t)(-1)) {
-               /* An error occured! */
+               /* 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';
@@ -133,7 +132,7 @@ Convert_Message(iconv_t Handle, char *Message)
        return Encoding_Buffer;
 }
 
-#endif
+#endif /* ICONV */
 
 /**
  * Convert encoding of a message received from a connection.