mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-25 06:31:43 +02:00
fixed possible char overflow in filename
This commit is contained in:
parent
7955bc1d8e
commit
7c8bcef271
@ -740,7 +740,6 @@ typedef struct trexio_s trexio_t;
|
|||||||
|
|
||||||
#+begin_src c :tangle prefix_s_front.h
|
#+begin_src c :tangle prefix_s_front.h
|
||||||
struct trexio_s {
|
struct trexio_s {
|
||||||
char file_name[TREXIO_MAX_FILENAME_LENGTH];
|
|
||||||
pthread_mutex_t thread_lock;
|
pthread_mutex_t thread_lock;
|
||||||
back_end_t back_end;
|
back_end_t back_end;
|
||||||
char mode;
|
char mode;
|
||||||
@ -750,6 +749,7 @@ struct trexio_s {
|
|||||||
int16_t version_minor;
|
int16_t version_minor;
|
||||||
int16_t version_patch;
|
int16_t version_patch;
|
||||||
char version[16];
|
char version[16];
|
||||||
|
char file_name[TREXIO_MAX_FILENAME_LENGTH];
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user