--- a/libperf_events/operf_sfile.h
+++ b/libperf_events/operf_sfile.h
@@ -90,7 +90,7 @@
 	operf_process_info * cur_procinfo;
 	vma_t pc;
 	const char * image_name;
-	const char * app_filename;
+	char app_filename[PATH_MAX];
 	size_t image_len, app_len;
 	vma_t last_pc;
 	int event;