previous fix was wrong; added another
This commit is contained in:
		
							parent
							
								
									c93f6d9fb1
								
							
						
					
					
						commit
						93eba2874d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -51,7 +51,8 @@ register FILE *fp;
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	fp->_count = 0;
 | 
						fp->_count = 0;
 | 
				
			||||||
	if (fp->_buf && (flags | IO_WRITEMODE)) fp->_count = BUFSIZ;
 | 
						if (fp->_buf && !(flags & IO_UNBUFF) && (flags & IO_WRITEMODE)) 
 | 
				
			||||||
 | 
							fp->_count = BUFSIZ;
 | 
				
			||||||
	fp->_fd = fd;
 | 
						fp->_fd = fd;
 | 
				
			||||||
	fp->_flags = flags;
 | 
						fp->_flags = flags;
 | 
				
			||||||
	return(fp);
 | 
						return(fp);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue