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

Collapse All | Expand All

(-)lib/libc/stdtime/strptime.c (-3 / +3 lines)
Lines 103-110 Link Here
103
103
104
	ptr = fmt;
104
	ptr = fmt;
105
	while (*ptr != 0) {
105
	while (*ptr != 0) {
106
		if (*buf == 0)
107
			break;
108
106
109
		c = *ptr++;
107
		c = *ptr++;
110
108
Lines 123-129 Link Here
123
label:
121
label:
124
		c = *ptr++;
122
		c = *ptr++;
125
		switch (c) {
123
		switch (c) {
126
		case 0:
127
		case '%':
124
		case '%':
128
			if (*buf++ != '%')
125
			if (*buf++ != '%')
129
				return (NULL);
126
				return (NULL);
Lines 599-604 Link Here
599
			while (isspace_l((unsigned char)*buf, locale))
596
			while (isspace_l((unsigned char)*buf, locale))
600
				buf++;
597
				buf++;
601
			break;
598
			break;
599
600
		default:
601
			return (NULL);
602
		}
602
		}
603
	}
603
	}
604
604

Return to bug 93197