Commit 5667a53b authored by Tom Lane's avatar Tom Lane

Undo some more pgindent breakage. Per buildfarm.

parent f7c93458
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Tatsuo Ishii * Tatsuo Ishii
* *
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.94 2010/02/26 02:01:14 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.95 2010/02/27 03:55:52 tgl Exp $
*/ */
#include "postgres.h" #include "postgres.h"
...@@ -1016,7 +1016,7 @@ pgwin32_toUTF16(const char *str, int len, int *utf16len) ...@@ -1016,7 +1016,7 @@ pgwin32_toUTF16(const char *str, int len, int *utf16len)
{ {
utf16 = (WCHAR *) palloc(sizeof(WCHAR) * (len + 1)); utf16 = (WCHAR *) palloc(sizeof(WCHAR) * (len + 1));
dstlen = MultiByteToWideChar(codepage, 0, str, len, utf16, len); dstlen = MultiByteToWideChar(codepage, 0, str, len, utf16, len);
utf16[dstlen] = L '\0'; utf16[dstlen] = L'\0';
} }
else else
{ {
...@@ -1029,7 +1029,7 @@ pgwin32_toUTF16(const char *str, int len, int *utf16len) ...@@ -1029,7 +1029,7 @@ pgwin32_toUTF16(const char *str, int len, int *utf16len)
utf16 = (WCHAR *) palloc(sizeof(WCHAR) * (len + 1)); utf16 = (WCHAR *) palloc(sizeof(WCHAR) * (len + 1));
dstlen = MultiByteToWideChar(CP_UTF8, 0, utf8, len, utf16, len); dstlen = MultiByteToWideChar(CP_UTF8, 0, utf8, len, utf16, len);
utf16[dstlen] = L '\0'; utf16[dstlen] = L'\0';
if (utf8 != str) if (utf8 != str)
pfree(utf8); pfree(utf8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment