]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image_png.c
changed extResponse handler to quote the address string when passing it to the menu qc
[xonotic/darkplaces.git] / image_png.c
index 93de913b5f09da2944dc49f28fa47dddb2f2a114..d9d7a5004f844dfe13aacdfc444493507b56e6d4 100644 (file)
@@ -111,6 +111,7 @@ qboolean PNG_OpenLibrary (void)
                "libpng12.0.dylib",
 #else
                "libpng12.so.0",
+               "libpng.so", // FreeBSD
 #endif
                NULL
        };
@@ -204,7 +205,7 @@ void PNG_fReadData(void *png, unsigned char *data, size_t length)
        l = my_png.tmpBuflength - my_png.tmpi;
        if (l < length)
        {
-               Con_Printf("PNG_fReadData: overrun by %i bytes\n", length - l);
+               Con_Printf("PNG_fReadData: overrun by %i bytes\n", (int)(length - l));
                // a read going past the end of the file, fill in the remaining bytes
                // with 0 just to be consistent
                memset(data + l, 0, length - l);