Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 73943 | Differences between
and this patch

Collapse All | Expand All

(-)branches/SAMBA_3_0/source/lib/bitmap.c (-3 / +3 lines)
Lines 41-47 Link Here
41
		return NULL;
41
		return NULL;
42
	}
42
	}
43
43
44
	memset(bm->b, 0, sizeof(bm->b[0])*(n+31)/32);
44
	memset(bm->b, 0, sizeof(uint32)*((n+31)/32));
45
45
46
	return bm;
46
	return bm;
47
}
47
}
Lines 78-84 Link Here
78
		return NULL;
78
		return NULL;
79
	}
79
	}
80
80
81
	memset(bm->b, 0, sizeof(bm->b[0])*(n+31)/32);
81
	memset(bm->b, 0, sizeof(uint32)*((n+31)/32));
82
82
83
	return bm;
83
	return bm;
84
}
84
}
Lines 92-98 Link Here
92
        int count = MIN(dst->n, src->n);
92
        int count = MIN(dst->n, src->n);
93
93
94
        SMB_ASSERT(dst->b != src->b);
94
        SMB_ASSERT(dst->b != src->b);
95
	memcpy(dst->b, src->b, sizeof(dst->b[0])*(count+31)/32);
95
	memcpy(dst->b, src->b, sizeof(uint32)*((count+31)/32));
96
96
97
        return count;
97
        return count;
98
}
98
}

Return to bug 73943