mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 11:53:22 +08:00 
			
		
		
		
	corrected the modifier for size_t
This commit is contained in:
		
							parent
							
								
									15d9d55c34
								
							
						
					
					
						commit
						ffc378b2b9
					
				@ -64,7 +64,7 @@ void httperror(struct http_data* h,const char* title,const char* message)
 | 
				
			|||||||
    char* c = (char*)malloc(strlen(message)+strlen(title)+200);
 | 
					    char* c = (char*)malloc(strlen(message)+strlen(title)+200);
 | 
				
			||||||
    if( !c) iob_addbuf(&h->iob, "HTTP/1.0 500 internal error\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\nout of memory\n", 90);
 | 
					    if( !c) iob_addbuf(&h->iob, "HTTP/1.0 500 internal error\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\nout of memory\n", 90);
 | 
				
			||||||
    else    iob_addbuf_free( &h->iob, c,
 | 
					    else    iob_addbuf_free( &h->iob, c,
 | 
				
			||||||
              sprintf( c, "HTTP/1.0 %s\r\nContent-Type: text/html\r\nConnection: close\r\nContent-Length: %ld\r\n\r\n<title>%s</title>\n",
 | 
					              sprintf( c, "HTTP/1.0 %s\r\nContent-Type: text/html\r\nConnection: close\r\nContent-Length: %zd\r\n\r\n<title>%s</title>\n",
 | 
				
			||||||
                       title, strlen(message)+strlen(title)+16-4,title+4) );
 | 
					                       title, strlen(message)+strlen(title)+16-4,title+4) );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user