1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core: use function util_parse_longlong to parse time in function hdata_set

This commit is contained in:
Sébastien Helleu
2026-06-20 11:54:32 +02:00
parent c150f67cf9
commit 9cf398afa1
+2 -2
View File
@@ -1313,9 +1313,9 @@ hdata_set (struct t_hdata *hdata, void *pointer, const char *name,
}
break;
case WEECHAT_HDATA_TIME:
if (util_parse_long (value, 10, &number_long) && (number_long >= 0))
if (util_parse_longlong (value, 10, &number_longlong) && (number_longlong >= 0))
{
*((time_t *)(pointer + var->offset)) = (time_t)number_long;
*((time_t *)(pointer + var->offset)) = (time_t)number_longlong;
return 1;
}
break;