From 3003c445b3cb1d1ca7e2304bfa3e2faf2ae02f80 Mon Sep 17 00:00:00 2001 From: Tien Fong Chee Date: Fri, 15 Feb 2019 15:57:07 +0800 Subject: fpga: Replace char * with const char * for filename Ensure the string for filename is always constant, otherwise it can be corrupted by the writing. Signed-off-by: Tien Fong Chee Signed-off-by: Michal Simek --- include/fpga.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/fpga.h') diff --git a/include/fpga.h b/include/fpga.h index 195f0bdd57a..51de5c55f83 100644 --- a/include/fpga.h +++ b/include/fpga.h @@ -41,7 +41,7 @@ typedef struct { /* typedef fpga_desc */ unsigned int blocksize; char *interface; char *dev_part; - char *filename; + const char *filename; int fstype; } fpga_fs_info; -- cgit v1.2.3