mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-31 07:56:53 +00:00 
			
		
		
		
	Fix thumbnail bug in serve
This commit is contained in:
		
							parent
							
								
									b82c26f0fb
								
							
						
					
					
						commit
						cb37a6e6c1
					
				| @ -187,6 +187,7 @@ void thumbnail(struct mg_connection *nc, struct mg_http_message *hm) { | |||||||
| 
 | 
 | ||||||
|         memcpy(tn_key, arg_doc_id, sizeof(arg_doc_id)); |         memcpy(tn_key, arg_doc_id, sizeof(arg_doc_id)); | ||||||
|         memcpy(tn_key + sizeof(arg_doc_id) - 1, tn_index, sizeof(char) * 4); |         memcpy(tn_key + sizeof(arg_doc_id) - 1, tn_index, sizeof(char) * 4); | ||||||
|  |         *(tn_key + sizeof(tn_key) - 1) = '\0'; | ||||||
| 
 | 
 | ||||||
|         data = store_read(store, (char *) tn_key, sizeof(tn_key), &data_len); |         data = store_read(store, (char *) tn_key, sizeof(tn_key), &data_len); | ||||||
|     } else { |     } else { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user