else if (data->CommentLength != 0 && data->CommentLength < SIZE_MAX - 1) { *cmt = (char *) XpmMalloc(data->CommentLength + 1);
else if (data->CommentLength != 0 && data->CommentLength < UINT_MAX - 1) { if( (*cmt = (char *) XpmMalloc(data->CommentLength + 1)) == NULL) return XpmNoMemory;
xpmGetCmt(data, cmt)    xpmData *data;    char **cmt;{    if (!data->type)	*cmt = NULL;    else if (data->CommentLength != 0 && data->CommentLength < SIZE_MAX - 1) {	*cmt = (char *) XpmMalloc(data->CommentLength + 1);	strncpy(*cmt, data->Comment, data->CommentLength);	(*cmt)[data->CommentLength] = '\0';	data->CommentLength = 0;    } else	*cmt = NULL;    return 0;}