diff --git a/src/XrdXml/XrdXmlMetaLink.cc b/src/XrdXml/XrdXmlMetaLink.cc index 2580a670aea..9acd3ee64e2 100644 --- a/src/XrdXml/XrdXmlMetaLink.cc +++ b/src/XrdXml/XrdXmlMetaLink.cc @@ -547,7 +547,7 @@ bool XrdXmlMetaLink::UrlOK(char *url) n = colon - url + 1; if (n >= (int)sizeof(pBuff)) return false; strncpy(pBuff, url, n); - pBuff[n+1] = 0; + pBuff[n] = 0; // Return whether or not this os one of the acceptable protocols //