Skip to content

Commit

Permalink
Fix potential buffer overrun introduced by query config patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Nov 22, 2013
1 parent 96664f2 commit f2961a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdXrootd/XrdXrootdXeq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,8 @@ int XrdXrootdProtocol::do_Qconf()
else if (!strcmp("cms", val))
{XrdOucErrInfo myError(Link->ID, Monitor.Did, clientPV);
if (osFS->fsctl(fsctl_cmd, ".", myError, CRED) == SFS_DATA)
n = snprintf(bp, bleft, "%s\n", myError.getErrText());
else {strcpy(bp, "cms\n"); n = 4;}
n = snprintf(bp, bleft, "%s\n", myError.getErrText());
else n = snprintf(bp, bleft, "%s\n", "cms\n");
bp += n; bleft -= n;
}
else if (!strcmp("pio_max", val))
Expand Down

0 comments on commit f2961a4

Please sign in to comment.