Fixed crash when saving shared memory. 87/161587/2
authorGwanglim Lee <gl77.lee@samsung.com>
Fri, 24 Nov 2017 08:38:26 +0000 (17:38 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 27 Nov 2017 01:25:08 +0000 (01:25 +0000)
It was passing stride argument instead of width when saving shared memory.

Change-Id: I533eb0f259db204b384e12682407f385b6d87c4f

src/tbm_surface_internal.c

index 3f5c61b..ac173eb 100644 (file)
@@ -2357,7 +2357,7 @@ tbm_surface_internal_capture_shm_buffer(void *ptr, int w, int h, int stride,
                return 0;
        }
 
-       _tbm_surface_internal_dump_file_png(file, ptr, stride, h, 0);
+       _tbm_surface_internal_dump_file_png(file, ptr, w, h, 0);
 
        TBM_TRACE("Capture %s \n", file);