mirror of
				git://erdgeist.org/opentracker
				synced 2025-10-31 01:43:23 +08:00 
			
		
		
		
	Fix debug output
This commit is contained in:
		
							parent
							
								
									d768bf6e81
								
							
						
					
					
						commit
						84f8738b82
					
				| @ -226,8 +226,11 @@ static void httpresponse( const int64 s, char *data, size_t l ) { | |||||||
|   size_t      reply_size = 0, reply_off; |   size_t      reply_size = 0, reply_off; | ||||||
| 
 | 
 | ||||||
| #ifdef _DEBUG_HTTPERROR | #ifdef _DEBUG_HTTPERROR | ||||||
|   memcpy( debug_request, data, l ); |   memcpy( debug_request, data, sizeof( debug_request ) ); | ||||||
|   data[l] = 0; |   if( l < sizeof( debug_request ) ) | ||||||
|  |     debug_request[ l ] = 0; | ||||||
|  |   else | ||||||
|  |     debug_request[ sizeof( debug_request ) - 1 ] = 0; | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|   /* This one implicitely tests strlen < 5, too -- remember, it is \n terminated */ |   /* This one implicitely tests strlen < 5, too -- remember, it is \n terminated */ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 erdgeist
						erdgeist