helper: copy filename 37/172837/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 16 Mar 2018 05:57:43 +0000 (14:57 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 16 Mar 2018 05:57:43 +0000 (14:57 +0900)
Change-Id: I5d15a165ba482aad7b1280abd411035a6c57ae22

src/tdm_helper.c

index 60a8daf18be6c03da2353cc6807335ed09e80a7b..2e00648289364501725996d908354a7af145bde7 100644 (file)
@@ -291,6 +291,11 @@ tdm_helper_dump_buffer(tbm_surface_h buffer, const char *file)
                strncat(p, ext, 3);
                p += 3;
                *p = '\0';
+       } else {
+               len = strnlen(file, TDM_PATH_LEN - 1);
+               strncat(p, file, len);
+               p += len;
+               *p = '\0';
        }
 
        tdm_helper_get_buffer_full_size(buffer, &bw, &bh);