/* Verify that string is non-empty and does not exceed max length.  */
static int exp_verify_string(char *cp, int max)
/* Verify that string is non-empty and does not exceed max length.  */
static int exp_verify_string(char *cp, int max)
{
	int	i;
	for (i = 0; i < max; i++)
		if (!cp[i])
			return i;
	cp[i] = 0;
	printk(KERN_NOTICE "nfsd: couldn't validate string %s\n", cp);
	return 0;
}