diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-01 21:03:44 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-01 21:03:44 +0200 |
commit | b1404b02777c58d5e104082f349dff201bd12ef8 (patch) | |
tree | 6b132f6dc587e49ae31bc9a5d773c8505cdef1af /src/plugins/guile | |
parent | 1514570ff02967b40ad3f72e301a574ed49d29ab (diff) | |
download | weechat-b1404b02777c58d5e104082f349dff201bd12ef8.zip |
scripts: fix issue with year ≥ 2038 in functions print_date_tags and print_y_date_tags
Affected plugins: python, lua, tcl, guile, javascript.
Diffstat (limited to 'src/plugins/guile')
-rw-r--r-- | src/plugins/guile/weechat-guile-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c index e7a817dbc..c83577860 100644 --- a/src/plugins/guile/weechat-guile-api.c +++ b/src/plugins/guile/weechat-guile-api.c @@ -1902,7 +1902,7 @@ weechat_guile_api_print_date_tags (SCM buffer, SCM date, SCM tags, SCM message) plugin_script_api_printf_date_tags (weechat_guile_plugin, guile_current_script, API_STR2PTR(API_SCM_TO_STRING(buffer)), - scm_to_int (date), + (time_t)scm_to_long (date), API_SCM_TO_STRING(tags), "%s", API_SCM_TO_STRING(message)); @@ -1940,7 +1940,7 @@ weechat_guile_api_print_y_date_tags (SCM buffer, SCM y, SCM date, SCM tags, guile_current_script, API_STR2PTR(API_SCM_TO_STRING(buffer)), scm_to_int (y), - scm_to_int (date), + (time_t)scm_to_long (date), API_SCM_TO_STRING(tags), "%s", API_SCM_TO_STRING(message)); |