ircsprintf -> rb_sprintf
This commit is contained in:
parent
5b96d9a6b9
commit
7cdb0a09b9
26 changed files with 61 additions and 61 deletions
|
@ -82,7 +82,7 @@ ms_encap(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
if((size_t)(cur_len + len) >= sizeof(buffer))
|
||||
return 0;
|
||||
|
||||
ircsnprintf(ptr, sizeof(buffer) - cur_len, "%s ", parv[i]);
|
||||
rb_snprintf(ptr, sizeof(buffer) - cur_len, "%s ", parv[i]);
|
||||
cur_len += len;
|
||||
ptr += len;
|
||||
}
|
||||
|
@ -91,9 +91,9 @@ ms_encap(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
|
||||
/* if its a command without parameters, dont prepend a ':' */
|
||||
if(parc == 3)
|
||||
ircsnprintf(ptr, sizeof(buffer) - cur_len, "%s", parv[2]);
|
||||
rb_snprintf(ptr, sizeof(buffer) - cur_len, "%s", parv[2]);
|
||||
else
|
||||
ircsnprintf(ptr, sizeof(buffer) - cur_len, ":%s", parv[parc-1]);
|
||||
rb_snprintf(ptr, sizeof(buffer) - cur_len, ":%s", parv[parc-1]);
|
||||
|
||||
/* add a trailing \0 if it was too long */
|
||||
if((cur_len + len) >= BUFSIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue