Temp fix for stupid -Wformat-security issue.
[blender.git] / source / blender / blenkernel / intern / pointcache.c
index c318356..c900d08 100644 (file)
@@ -840,7 +840,10 @@ static int ptcache_dynamicpaint_read(PTCacheFile *pf, void *dp_v)
        
        /* version header */
        ptcache_file_read(pf, version, 1, sizeof(char) * 4);
-       if (strncmp(version, DPAINT_CACHE_VERSION, 4)) {printf("Dynamic Paint: Invalid cache version: %s!\n", version); return 0;}
+       if (strncmp(version, DPAINT_CACHE_VERSION, 4)) {
+               printf("Dynamic Paint: Invalid cache version: %s!\n", version);
+               return 0;
+       }
 
        if (surface->format != MOD_DPAINT_SURFACE_F_IMAGESEQ && surface->data) {
                unsigned int data_len;
@@ -1516,7 +1519,7 @@ static int ptcache_file_compressed_write(PTCacheFile *pf, unsigned char *in, uns
        if (mode == 2) {
                
                r = LzmaCompress(out, &out_len, in, in_len, //assume sizeof(char)==1....
-                                               props, &sizeOfIt, 5, 1 << 24, 3, 0, 2, 32, 2);
+                                props, &sizeOfIt, 5, 1 << 24, 3, 0, 2, 32, 2);
 
                if (!(r == SZ_OK) || (out_len >= in_len))
                        compressed = 0;