diff options
Diffstat (limited to 'contrib/xml2/xpath.c')
-rw-r--r-- | contrib/xml2/xpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c index f7e3f485fe1..19180b9a6c2 100644 --- a/contrib/xml2/xpath.c +++ b/contrib/xml2/xpath.c @@ -278,8 +278,8 @@ xpath_string(PG_FUNCTION_ARGS) /* We could try casting to string using the libxml function? */ xpath = (xmlChar *) palloc(pathsize + 9); - memcpy((char *) xpath, "string(", 7); - memcpy((char *) (xpath + 7), VARDATA_ANY(xpathsupp), pathsize); + memcpy(xpath, "string(", 7); + memcpy(xpath + 7, VARDATA_ANY(xpathsupp), pathsize); xpath[pathsize + 7] = ')'; xpath[pathsize + 8] = '\0'; |