View | Details | Raw Unified | Return to bug 181272 | Differences between
and this patch

Collapse All | Expand All

(-)util.c (-2 / +6 lines)
Lines 402-413 Link Here
402
	name = fullname = t = savestr(at);
402
	name = fullname = t = savestr(at);
403
403
404
	/* Strip off up to `sleading' leading slashes and null terminate. */
404
	/* Strip off up to `sleading' leading slashes and null terminate. */
405
	for (; *t && !isspace((unsigned char)*t); t++)
405
	for (; *t && *t!='\t' && *t!='\n'; t++)
406
		/* Replace any space by 0x20 */
407
		if (isspace((unsigned char) *t))
408
			if (*(t+1) && (*(t+1) == '\t'))
409
				break;
410
			*t = 0x20;
406
		if (*t == '/')
411
		if (*t == '/')
407
			if (--sleading >= 0)
412
			if (--sleading >= 0)
408
				name = t + 1;
413
				name = t + 1;
409
	*t = '\0';
414
	*t = '\0';
410
411
	/*
415
	/*
412
	 * If no -p option was given (957 is the default value!),
416
	 * If no -p option was given (957 is the default value!),
413
	 * we were given a relative pathname,
417
	 * we were given a relative pathname,

Return to bug 181272