$Log$
+Revision 1.349 1999/08/08 00:25:45 ajc
+* Made one more byte available in locate_host() and in all the structs which
+ its output gets written to (client can display 24 positions but we were only
+ saving 23).
+
Revision 1.348 1999/08/07 16:34:38 nbryant
- * serv_icq.c: warning fixes
+* serv_icq.c: warning fixes
Revision 1.347 1999/08/06 02:57:26 ajc
* locate_host.c: use strdoop() and phree() instead of strdup() and free()
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
-
#include "server.h"
#include "locate_host.h"
#include "config.h"
+#include "tools.h"
void locate_host(char *tbuf, const struct in_addr *addr)
{
for (; *ch->h_addr_list; ch->h_addr_list++)
if (!memcmp(*ch->h_addr_list, addr,
sizeof *addr)) {
- safestrncpy(tbuf, ch->h_name, 24);
+ safestrncpy(tbuf, ch->h_name, 25);
goto end;
}
goto bad_dns; /* they were spoofing. report a numeric IP
end_critical_section(S_NETDB);
#endif
- tbuf[24] = 0;
+ tbuf[25] = 0;
}
DWORD uin;
char name[32];
DWORD status;
- char host[25];
+ char host[26];
};
int cs_clienttyp; /* client type code */
int cs_clientver; /* client version number */
char cs_clientname[32]; /* name of client software */
- char cs_host[25]; /* host logged in from */
+ char cs_host[26]; /* host logged in from */
FILE *download_fp; /* Fields relating to file transfer */
FILE *upload_fp;