Skip to content

Commit

Permalink
[XrdXml] Make sure c-string buffes are properly terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed May 20, 2016
1 parent c2556ae commit 707f518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdXml/XrdXmlMetaLink.cc
Expand Up @@ -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
//
Expand Down

0 comments on commit 707f518

Please sign in to comment.