if(ipv6)
{
- snprintf(outbuf, HOSTLEN, "%s:%x", buf, accum);
+ rb_snprintf(outbuf, HOSTLEN, "%s:%x", buf, accum);
}
else
{
- snprintf(outbuf, HOSTLEN, "%s.%x", buf, accum);
+ rb_snprintf(outbuf, HOSTLEN, "%s.%x", buf, accum);
}
}
if (!strncmp(message, "Closing Link: 127.0.0.1 (", 25))
return 1;
- snprintf(prefix2, sizeof prefix2,
+ rb_snprintf(prefix2, sizeof prefix2,
"Closing Link: 127.0.0.1 %s (", me.name);
if (!strncmp(message, prefix2, strlen(prefix2)))
return 1;
ilog(L_SERVER, "Link %s cancelled, server %s already exists",
client_p->name, name);
- snprintf(squitreason, sizeof squitreason,
+ rb_snprintf(squitreason, sizeof squitreason,
"Server %s already exists",
name);
exit_client(client_p, client_p, &me, squitreason);
ilog(L_SERVER, "Link %s cancelled, server %s already exists",
client_p->name, parv[1]);
- snprintf(squitreason, sizeof squitreason,
+ rb_snprintf(squitreason, sizeof squitreason,
"Server %s already exists",
parv[1]);
exit_client(NULL, client_p, &me, squitreason);
ilog(L_SERVER, "Link %s cancelled, SID %s for server %s already in use by %s",
client_p->name, parv[3], parv[1], target_p->name);
- snprintf(squitreason, sizeof squitreason,
+ rb_snprintf(squitreason, sizeof squitreason,
"SID %s for %s already in use by %s",
parv[3], parv[1], target_p->name);
exit_client(NULL, client_p, &me, squitreason);
sendto_one(client_p, "%s", offbuf);
if(p)
- snprintf(buf, sizeof(buf), "%s,%s", name, p);
+ rb_snprintf(buf, sizeof(buf), "%s,%s", name, p);
else
- snprintf(buf, sizeof(buf), "%s", name);
+ rb_snprintf(buf, sizeof(buf), "%s", name);
sendto_one(client_p, form_str(ERR_MONLISTFULL),
me.name, client_p->name,
kill_client_serv_butone(NULL, exist_p, "%s (Nickname regained by services)",
me.name);
- snprintf(buf, sizeof(buf), "Killed (%s (Nickname regained by services))",
+ rb_snprintf(buf, sizeof(buf), "Killed (%s (Nickname regained by services))",
me.name);
exit_client(NULL, exist_p, &me, buf);
}
kill_client_serv_butone(NULL, exist_p, "%s (Nickname regained by services)",
me.name);
- snprintf(buf, sizeof(buf), "Killed (%s (Nickname regained by services))",
+ rb_snprintf(buf, sizeof(buf), "Killed (%s (Nickname regained by services))",
me.name);
exit_client(NULL, exist_p, &me, buf);
}else if((exist_p = find_client(nick)) && IsUnknown(exist_p) && exist_p != target_p) {
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"Link %s dropped, wrong TS protocol version (%s,%s)",
source_p->name, parv[1], parv[2]);
- snprintf(squitreason, sizeof squitreason, "Incompatible TS version (%s,%s)",
+ rb_snprintf(squitreason, sizeof squitreason, "Incompatible TS version (%s,%s)",
parv[1], parv[2]);
exit_client(source_p, source_p, source_p, squitreason);
return 0;
"Link %s dropped, excessive TS delta"
" (my TS=%ld, their TS=%ld, delta=%d)",
log_client_name(source_p, SHOW_IP), (long) rb_current_time(), (long) theirtime, deltat);
- snprintf(squitreason, sizeof squitreason, "Excessive TS delta (my TS=%ld, their TS=%ld, delta=%d)",
+ rb_snprintf(squitreason, sizeof squitreason, "Excessive TS delta (my TS=%ld, their TS=%ld, delta=%d)",
(long) rb_current_time(), (long) theirtime, deltat);
exit_client(source_p, source_p, source_p, squitreason);
return 0;
{
char buffer[BUFSIZE];
- snprintf(buffer, sizeof(buffer), "%s!%s@%s %s",
+ rb_snprintf(buffer, sizeof(buffer), "%s!%s@%s %s",
target_p->name, target_p->username,
target_p->host, target_p->servptr->name);
report_operspy(source_p, "WHOIS", buffer);
s_assert(dict != NULL);
if (dict->id != NULL)
- snprintf(str, sizeof str, "Dictionary stats for %s (%d)",
+ rb_snprintf(str, sizeof str, "Dictionary stats for %s (%d)",
dict->id, dict->count);
else
- snprintf(str, sizeof str, "Dictionary stats for <%p> (%d)",
+ rb_snprintf(str, sizeof str, "Dictionary stats for <%p> (%d)",
(void *)dict, dict->count);
cb(str, privdata);
maxdepth = 0;
sum = stats_recurse(dict->root, 0, &maxdepth);
- snprintf(str, sizeof str, "Depth sum %d Avg depth %d Max depth %d", sum, sum / dict->count, maxdepth);
+ rb_snprintf(str, sizeof str, "Depth sum %d Avg depth %d Max depth %d", sum, sum / dict->count, maxdepth);
cb(str, privdata);
return;
}
ilog(L_SERVER,
"Insufficient parameters (%d < %d) for command '%s' from %s.",
i, ehandler.min_para, mptr->cmd, client_p->name);
- snprintf(squitreason, sizeof squitreason,
+ rb_snprintf(squitreason, sizeof squitreason,
"Insufficient parameters (%d < %d) for command '%s'",
i, ehandler.min_para, mptr->cmd);
exit_client(client_p, client_p, client_p, squitreason);