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 fb7f8e7 commit d00f621Copy full SHA for d00f621
src/backend/utils/adt/varlena.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.5 1996/09/10 06:41:38 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.6 1996/09/23 08:31:01 scrappy Exp $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -166,7 +166,7 @@ textin(char *inputText)
166
167
if (inputText == NULL)
168
return(NULL);
169
- len = strlen(inputText) + VARHDRSZ;
+ len = strlen(inputText) + VARHDRSZ + 1;
170
result = (struct varlena *) palloc(len);
171
VARSIZE(result) = len;
172
memmove(VARDATA(result), inputText, len - VARHDRSZ);
0 commit comments