make somewhat safer
This commit is contained in:
		
							parent
							
								
									a40768b6f9
								
							
						
					
					
						commit
						615b67952f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -64,7 +64,7 @@ static getline () | ||||||
| 
 | 
 | ||||||
| static skip_period ()  | static skip_period ()  | ||||||
| { | { | ||||||
|         while (*_buf != ':') |         while (*_buf && *_buf != ':') | ||||||
| 	        _buf++; | 	        _buf++; | ||||||
|         *_buf++ = '\0'; |         *_buf++ = '\0'; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -65,7 +65,7 @@ static getline () | ||||||
| 
 | 
 | ||||||
| static skip_period ()  | static skip_period ()  | ||||||
| { | { | ||||||
| 	while (*_buf != ':') | 	while (*_buf && *_buf != ':') | ||||||
| 		_buf++; | 		_buf++; | ||||||
| 
 | 
 | ||||||
| 	*_buf++ = '\0'; | 	*_buf++ = '\0'; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue