Skip to content

Commit 22d2a16

Browse files
committed
fix: LOCAL_FILE_PATH_LENGTH macro
Now, it's take into account the `.txt` file extension.
1 parent ad782b5 commit 22d2a16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/macros.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
#define LOCAL_FILE_PATH "./statics/local-storage/informe-juego_"
1313

14-
#define LOCAL_FILE_PATH_LENGTH (sizeof(LOCAL_FILE_PATH) + sizeof("YYYY-MM-DD-HH-mm") + 1)
14+
#define LOCAL_FILE_PATH_LENGTH \
15+
(sizeof(LOCAL_FILE_PATH) + sizeof("YYYY-MM-DD-HH-mm") + sizeof(".txt") + 1)
1516

1617
/* --------------------------------- Player --------------------------------- */
1718

0 commit comments

Comments
 (0)