tolower was called without checking for isupper; adapted
This commit is contained in:
		
							parent
							
								
									f2b485740b
								
							
						
					
					
						commit
						0c386e3032
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -80,9 +80,9 @@ va_list ap; | ||||||
| 				width = width * 10 + *format++ - '0'; | 				width = width * 10 + *format++ - '0'; | ||||||
| 		} else | 		} else | ||||||
| 			widflag = 0;	/* no width spec */ | 			widflag = 0;	/* no width spec */ | ||||||
| 		if (longflag = (tolower (*format) == 'l')) | 		if (longflag = (*format == 'L' || *format == 'l')) | ||||||
| 			++format; | 			++format; | ||||||
| 		else if (shortflag = (tolower(*format) == 'h')) | 		else if (shortflag = (*format == 'H' || *format == 'h')) | ||||||
| 			++format; | 			++format; | ||||||
| 		if (isupper(*format)) { | 		if (isupper(*format)) { | ||||||
| 			kind = tolower(*format); | 			kind = tolower(*format); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue