timestring,
timestamp_width+1,
&fill)) {
- printf(timestring);
+ printf("%s", timestring);
}
}
fmtbuf,
sizeof(fmtbuf),
&fill))
- printf(fmtbuf);
+ printf("%s", fmtbuf);
}
com_err(progname, KRB5_PROG_KEYTYPE_NOSUPP,
"while setting up enctype %d", master_keyblock.enctype);
else
- com_err(progname, KRB5_PROG_KEYTYPE_NOSUPP, tmp);
+ com_err(progname, KRB5_PROG_KEYTYPE_NOSUPP, "%s", tmp);
exit_status++; return;
}
static int _rpcsvcstate = _IDLE; /* Set when a request is serviced */
static int _rpcsvccount = 0; /* Number of requests being serviced */
-static
-void _msgout(msg)
- char *msg;
-{
- syslog(LOG_ERR, msg);
-}
-
void
rpc_test_prog_1_svc(rqstp, transp)
struct svc_req *rqstp;
svcerr_systemerr(transp);
}
if (!svc_freeargs(transp, xdr_argument, &argument)) {
- _msgout("unable to free arguments");
+ syslog(LOG_ERR, "unable to free arguments");
exit(1);
}
_rpcsvccount--;
snprintf(buf, sizeof(buf),
"while encoding database block starting at %d",
sent_size);
- com_err(progname, retval, buf);
+ com_err(progname, retval, "%s", buf);
send_error(context, my_creds, fd, buf, retval);
exit(1);
}
snprintf(buf, sizeof(buf),
"while reading database block starting at offset %d",
received_size);
- com_err(progname, retval, buf);
+ com_err(progname, retval, "%s", buf);
send_error(context, fd, retval, buf);
exit(1);
}
snprintf(buf, sizeof(buf),
"while decoding database block starting at offset %d",
received_size);
- com_err(progname, retval, buf);
+ com_err(progname, retval, "%s", buf);
send_error(context, fd, retval, buf);
krb5_free_data_contents(context, &inbuf);
exit(1);