commit 6a65aa86cab3e5f2f5616bb3706d28ad0e00c8b7
parent ae1ae41f6f41a6ad0a3a47ef6d9475564b674c0a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 3 Mar 2026 16:40:08 +0100
Make filenames as input constant
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sgas.h b/src/sgas.h
@@ -44,7 +44,7 @@ struct sgas_file {
* on whether stream is set or not. If name is NULL, then the data is loaded
* from stream, which must be set. In this case, the name of the stream is a
* default name. */
- char* name; /* NULL <=> load from stream */
+ const char* name; /* NULL <=> load from stream */
FILE* stream; /* NULL <=> load from name */
};
#define SGAS_FILE_NULL__ {0}