View | Details | Raw Unified | Return to bug 223545
Collapse All | Expand All

(-)head/usr.bin/patch/patch.c (+3 lines)
Lines 1026-1031 Link Here
1026
	const char	*plineptr;
1026
	const char	*plineptr;
1027
	unsigned short	plinelen;
1027
	unsigned short	plinelen;
1028
1028
1029
	/* Patch does not match if we don't have anymore context to use */
1030
	if (pline > pat_lines)
1031
		return false;
1029
	for (iline = base + offset + fuzz; pline <= pat_lines; pline++, iline++) {
1032
	for (iline = base + offset + fuzz; pline <= pat_lines; pline++, iline++) {
1030
		ilineptr = ifetch(iline, offset >= 0);
1033
		ilineptr = ifetch(iline, offset >= 0);
1031
		if (ilineptr == NULL)
1034
		if (ilineptr == NULL)

Return to bug 223545