commit 0ec5e323572bb5548370a1cbc339457205871ce6 from: Omar Polo date: Sat Feb 03 12:44:33 2024 UTC fix dst buffer size; no-op in practice commit - 8c4ae8cec09f2f877c2f5affbc8d6c796468c3c8 commit + 0ec5e323572bb5548370a1cbc339457205871ce6 blob - ee92ccb9378b576dfa1f07f2530588635bf91971 blob + 7758bf12a823fbfb255a8158a88bddba18e2b018 --- fs.c +++ fs.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Omar Polo + * Copyright (c) 2021, 2024 Omar Polo * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -365,11 +365,11 @@ fs_init(void) join_path(session_file, cache_path_base, "/session", sizeof(session_file)); join_path(session_file_tmp, cache_path_base, "/session.XXXXXXXXXX", - sizeof(session_file)); + sizeof(session_file_tmp)); join_path(history_file, cache_path_base, "/history", sizeof(history_file)); join_path(history_file_tmp, cache_path_base, "/history.XXXXXXXXXX", - sizeof(history_file)); + sizeof(history_file_tmp)); join_path(crashed_file, cache_path_base, "/crashed", sizeof(crashed_file));