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

Collapse All | Expand All

(-)"basename.c" (-1 / +4 lines)
Lines 45-51 char * Link Here
45
	ptr = path + strlen(path);
45
	ptr = path + strlen(path);
46
	while (ptr > path + 1 && *(ptr - 1) == '/')
46
	while (ptr > path + 1 && *(ptr - 1) == '/')
47
		--ptr;
47
		--ptr;
48
	*ptr-- = '\0';
48
49
	if( *ptr )
50
		*ptr = '\0';
51
	--ptr;
49
52
50
	/* Find beginning of last pathname component. */
53
	/* Find beginning of last pathname component. */
51
	while (ptr > path && *(ptr - 1) != '/')
54
	while (ptr > path && *(ptr - 1) != '/')

Return to bug 235121