We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9e15b47 commit3f12653Copy full SHA for 3f12653
src/backend/utils/mb/mbutils.c
@@ -4,7 +4,7 @@
4
*
5
* Tatsuo Ishii
6
7
- * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.96 2010/07/0619:18:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.97 2010/07/0621:09:00 tgl Exp $
8
*/
9
#include"postgres.h"
10
@@ -1016,7 +1016,7 @@ pgwin32_toUTF16(const char *str, int len, int *utf16len)
1016
{
1017
utf16= (WCHAR*)palloc(sizeof(WCHAR)* (len+1));
1018
dstlen=MultiByteToWideChar(codepage,0,str,len,utf16,len);
1019
-utf16[dstlen]=L'\0';
+utf16[dstlen]=L'\0';
1020
}
1021
else
1022
@@ -1029,7 +1029,7 @@ pgwin32_toUTF16(const char *str, int len, int *utf16len)
1029
1030
1031
dstlen=MultiByteToWideChar(CP_UTF8,0,utf8,len,utf16,len);
1032
1033
1034
if (utf8!=str)
1035
pfree(utf8);