vsprintf() sets _IOWRITING flag
This commit is contained in:
		
							parent
							
								
									be2264283f
								
							
						
					
					
						commit
						0c8acbf834
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -14,7 +14,7 @@ vsprintf(char *s, const char *format, va_list arg)
 | 
				
			||||||
	FILE tmp_stream;
 | 
						FILE tmp_stream;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tmp_stream._fd     = -1;
 | 
						tmp_stream._fd     = -1;
 | 
				
			||||||
	tmp_stream._flags  = _IOWRITE + _IONBF;
 | 
						tmp_stream._flags  = _IOWRITE + _IONBF + _IOWRITING;
 | 
				
			||||||
	tmp_stream._buf    = (unsigned char *) s;
 | 
						tmp_stream._buf    = (unsigned char *) s;
 | 
				
			||||||
	tmp_stream._ptr    = (unsigned char *) s;
 | 
						tmp_stream._ptr    = (unsigned char *) s;
 | 
				
			||||||
	tmp_stream._count  = 32767;
 | 
						tmp_stream._count  = 32767;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue