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

(-)contrib/ipfilter/ipf.c (-3 / +11 lines)
Lines 347-358 Link Here
347
			if (fgets(p, s, file) == NULL)
347
			if (fgets(p, s, file) == NULL)
348
				return (NULL);
348
				return (NULL);
349
			len = strlen(p);
349
			len = strlen(p);
350
			if (p[len - 1] != '\n') {
351
				p[len] = '\0';
352
				break;
353
			}
350
			p[len - 1] = '\0';
354
			p[len - 1] = '\0';
351
			if (p[len - 1] != '\\')
355
			if (len < 2 || p[len - 2] != '\\')
352
				break;
356
				break;
353
			size -= len;
357
			else {
358
				/* Convert '\\' to a space so words don't run together */
359
				p[len - 2] = ' ';
360
				len--;
361
			}
354
		}
362
		}
355
	} while (*str == '\0' || *str == '\n');
363
	} while (*str == '\0');
356
	return (str);
364
	return (str);
357
}
365
}

Return to bug 19793