]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.c
fix for server dying when someone times out
[xonotic/darkplaces.git] / jpeg.c
diff --git a/jpeg.c b/jpeg.c
index 85e0a71993e60179c7c36a3141b95cad41db5766..3519ab19d28cdecf3074b314bc4337326c9f2e6e 100644 (file)
--- a/jpeg.c
+++ b/jpeg.c
@@ -359,7 +359,7 @@ static void JPEG_MemSrc (j_decompress_ptr cinfo, qbyte *buffer)
        cinfo->src = (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof (struct jpeg_source_mgr));
 
        cinfo->src->next_input_byte = buffer;
-       cinfo->src->bytes_in_buffer = com_filesize;
+       cinfo->src->bytes_in_buffer = fs_filesize;
 
        cinfo->src->init_source = JPEG_Noop;
        cinfo->src->fill_input_buffer = JPEG_FillInputBuffer;