if (hostlen < strlen (host) + strlen (display) + 4)
{
hostlen = strlen (host) + strlen (display) + 4;
- hoststr = (char *) realloc (hoststr, hostlen);
+ hoststr = xrealloc (hoststr, hostlen);
}
sprintf (hoststr, "(%s:%s)", host, display);
}
if (hostlen < strlen (host) + 3)
{
hostlen = strlen (host) + 3;
- hoststr = (char *) realloc (hoststr, hostlen);
+ hoststr = xrealloc (hoststr, hostlen);
}
sprintf (hoststr, "(%s)", host);
}
if (hostlen < 1)
{
hostlen = 1;
- hoststr = (char *) realloc (hoststr, hostlen);
+ hoststr = xrealloc (hoststr, hostlen);
}
stpcpy (hoststr, "");
}