We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93513d1 commit 4f5182eCopy full SHA for 4f5182e
src/backend/utils/adt/quote.c
@@ -107,7 +107,7 @@ quote_literal_cstr(const char *rawstr)
107
108
len = strlen(rawstr);
109
/* We make a worst-case result area; wasting a little space is OK */
110
- result = palloc(len * 2 + 3);
+ result = palloc(len * 2 + 3 + 1);
111
112
newlen = quote_literal_internal(result, rawstr, len);
113
result[newlen] = '\0';
0 commit comments