cast to unsigned char to make sure its not negative when passing it to
is* functions git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16062 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -334,7 +334,7 @@ strptime (const char *buf, const char *format, struct tm *timeptr) | ||||
| 		timeptr->tm_min = ret; | ||||
| 		break; | ||||
| 	    case 'n' : | ||||
| 		while (isspace (*buf)) | ||||
| 		while (isspace ((unsigned char)*buf)) | ||||
| 		    buf++; | ||||
| 		break; | ||||
| 	    case 'p' : | ||||
| @@ -365,7 +365,7 @@ strptime (const char *buf, const char *format, struct tm *timeptr) | ||||
| 		timeptr->tm_sec = ret; | ||||
| 		break; | ||||
| 	    case 't' : | ||||
| 		while (isspace (*buf)) | ||||
| 		while (isspace ((unsigned char)*buf)) | ||||
| 		    buf++; | ||||
| 		break; | ||||
| 	    case 'T' :		/* %H:%M:%S */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand