if (strlen(name) >= sizeof nbuf)
if (strlen(name) >= (SIZE_T) sizeof nbuf)
text_getcanonname(name, hbsize, statp)	char *name;	int hbsize;	int *statp;{	int key_idx;	bool found;	FILE *f;	char linebuf[MAXLINE];	char cbuf[MAXNAME + 1];	char fbuf[MAXNAME + 1];	char nbuf[MAXNAME + 1];	extern char *get_column __P((char *, int, char, char *, int));	if (tTd(38, 20))		printf("text_getcanonname(%s)\n", name);	if (strlen(name) >= sizeof nbuf)	{		*statp = EX_UNAVAILABLE;		return FALSE;	}	(void) strcpy(nbuf, name);	shorten_hostname(nbuf);	f = fopen(HostsFile, "r");	if (f == NULL)	{		*statp = EX_UNAVAILABLE;		return FALSE;	}	found = FALSE;	while (!found && fgets(linebuf, MAXLINE, f) != NULL)	{		char *p = strpbrk(linebuf, "#\n");		if (p != NULL)			*p = '\0';		if (linebuf[0] != '\0')			found = extract_canonname(nbuf, linebuf, cbuf, sizeof cbuf);	}	fclose(f);	if (!found)	{		*statp = EX_NOHOST;		return FALSE;	}	if (hbsize >= strlen(cbuf))	{		strcpy(name, cbuf);		*statp = EX_OK;		return TRUE;	}	*statp = EX_UNAVAILABLE;	return FALSE;}