Skip to content

Commit

Permalink
Fix fedora rawhide build.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Mar 23, 2018
1 parent 5293ebc commit ec4305e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/XrdSecgsi/XrdSecProtocolgsi.cc
Expand Up @@ -3781,7 +3781,7 @@ void XrdSecProtocolgsi::ErrF(XrdOucErrInfo *einfo, kXR_int32 ecode,
if (bout) {
bout[0] = 0;
for (k = 0; k < i; k++)
sprintf(bout,"%s%s",bout,msgv[k]);
strcat(bout, msgv[k]);
DEBUG(bout);
} else {
for (k = 0; k < i; k++)
Expand Down
2 changes: 1 addition & 1 deletion src/XrdSecpwd/XrdSecProtocolpwd.cc
Expand Up @@ -3400,7 +3400,7 @@ void XrdSecProtocolpwd::ErrF(XrdOucErrInfo *einfo, kXR_int32 ecode,
if (bout) {
bout[0] = 0;
for (k = 0; k < i; k++)
sprintf(bout,"%s%s",bout,msgv[k]);
strcat(bout, msgv[k]);
PRINT(bout);
} else {
for (k = 0; k < i; k++)
Expand Down
6 changes: 5 additions & 1 deletion src/XrdSut/XrdSutAux.cc
Expand Up @@ -255,7 +255,11 @@ int XrdSutToHex(const char *in, int lin, char *out)
int i = 0;
out[0] = 0;
for ( ; i < lin; i++)
sprintf(out,"%s%02x",out,(0xFF & in[i]));
{
char buff[3];
sprintf(buff, "%02x", (0xFF & in[i]));
strncat(out, buff, 3);
}
// Null termination
out[lbuf-1] = 0;

Expand Down

0 comments on commit ec4305e

Please sign in to comment.