1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

scripts: fix issue with year ≥ 2038 in function infolist_new_var_time

Affected plugins: python, lua, tcl, guile, javascript.
This commit is contained in:
Sébastien Helleu
2022-08-01 20:32:09 +02:00
parent 2475ba43a3
commit 1514570ff0
8 changed files with 22 additions and 16 deletions
+3 -3
View File
@@ -4540,18 +4540,18 @@ API_FUNC(infolist_new_var_time)
{
char *item, *name;
const char *result;
int value;
long value;
API_INIT_FUNC(1, "infolist_new_var_time", API_RETURN_EMPTY);
item = NULL;
name = NULL;
value = 0;
if (!PyArg_ParseTuple (args, "ssi", &item, &name, &value))
if (!PyArg_ParseTuple (args, "ssl", &item, &name, &value))
API_WRONG_ARGS(API_RETURN_EMPTY);
result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(item),
name,
value));
(time_t)value));
API_RETURN_STRING(result);
}