Skip to content
Snippets Groups Projects
Commit d1c13010 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Version string was truncating the last character.

Use memcpy() rather than StrNCpy() which had forced a string termination
 character at the end.
parent 5763683c
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
*
* IDENTIFICATION
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.5 1999/02/13 23:19:36 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.6 1999/04/06 15:35:36 thomas Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -25,7 +25,7 @@ version(void)
text *ret = (text *) palloc(n);
VARSIZE(ret) = n;
StrNCpy(VARDATA(ret), PG_VERSION_STR, strlen(PG_VERSION_STR));
memcpy(VARDATA(ret), PG_VERSION_STR, strlen(PG_VERSION_STR));
return ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment