|
7 | 7 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.22 2007/01/25 11:53:51 petere Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.23 2007/01/27 11:48:31 petere Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -1341,7 +1341,7 @@ map_sql_identifier_to_xml_name(char *ident, bool fully_escaped) |
1341 | 1341 | staticchar* |
1342 | 1342 | unicode_to_sqlchar(pg_wcharc) |
1343 | 1343 | { |
1344 | | -staticunsignedcharutf8string[4]; |
| 1344 | +staticunsignedcharutf8string[5];/* need trailing zero */ |
1345 | 1345 |
|
1346 | 1346 | if (c <=0x7F) |
1347 | 1347 | { |
|