1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-07-22 18:57:39 +02:00

fixed possible char overflow in filename

This commit is contained in:
Anthony Scemama 2023-03-24 12:16:21 +01:00
parent 7955bc1d8e
commit 7c8bcef271

View File

@ -740,7 +740,6 @@ typedef struct trexio_s trexio_t;
#+begin_src c :tangle prefix_s_front.h
struct trexio_s {
char file_name[TREXIO_MAX_FILENAME_LENGTH];
pthread_mutex_t thread_lock;
back_end_t back_end;
char mode;
@ -750,6 +749,7 @@ struct trexio_s {
int16_t version_minor;
int16_t version_patch;
char version[16];
char file_name[TREXIO_MAX_FILENAME_LENGTH];
};
#+end_src