Use dynamically allocated string in struct io_file

Avoid using fixed-size buffers and strncpy().

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2020-10-10 00:01:46 -04:00
parent 5f47194b3b
commit d25b9c0f37
2 changed files with 3 additions and 2 deletions

View File

@@ -510,7 +510,7 @@ struct notify_app {
struct io_file {
FILE *fd;
char name[BUFSIZ];
char *name;
};
/* Available keys. */