-/* $Id: ip_cloaking_old.c 3522 2007-07-06 07:48:28Z nenolod $ */
#include "stdinc.h"
#include "modules.h"
static void
do_host_cloak(const char *inbuf, char *outbuf, int ipmask)
{
- int cyc;
+ unsigned int cyc;
unsigned int hosthash = 1, hosthash2 = 1;
unsigned int maxcycle = strlen(inbuf);
int len1;
if (ipmask == 0)
{
- rb_snprintf(outbuf, HOSTLEN, "%s-%X%X",
+ snprintf(outbuf, HOSTLEN, "%s-%X%X",
ServerInfo.network_name, hosthash2, hosthash);
len1 = strlen(outbuf);
rest = strchr(inbuf, '.');
rb_strlcat(outbuf, rest, HOSTLEN);
}
else
- rb_snprintf(outbuf, HOSTLEN, "%X%X.%s",
+ snprintf(outbuf, HOSTLEN, "%X%X.%s",
hosthash2, hosthash, ServerInfo.network_name);
}