correct email address
[platform/core/uifw/libtdm.git] / src / tdm_helper.c
index 60a8daf..61971e5 100644 (file)
@@ -9,7 +9,7 @@
  *          Taeheon Kim <th908.kim@samsung.com>,
  *          YoungJun Cho <yj44.cho@samsung.com>,
  *          SooChan Lim <sc1.lim@samsung.com>,
- *          Boram Park <sc1.lim@samsung.com>
+ *          Boram Park <boram1288.park@samsung.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the
@@ -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);
@@ -1072,4 +1077,4 @@ tdm_helper_output_vblank_timer_expired(tdm_output *output)
        TDM_RETURN_VAL_IF_FAIL(private_output != NULL, -1);
 
        return private_output->vblank_timeout_timer_expired;
-}
\ No newline at end of file
+}