From 0ba30fc2170f6b83f6b9a87998df7965050afcf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 20 Jun 2026 11:54:32 +0200 Subject: [PATCH] core: use function util_parse_longlong to parse date in command /print --- src/core/core-command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/core-command.c b/src/core/core-command.c index 5d1923597..8fd1bb493 100644 --- a/src/core/core-command.c +++ b/src/core/core-command.c @@ -5536,7 +5536,7 @@ COMMAND_CALLBACK(print) struct timeval tv_date; char *tags, *pos, *text, *text2, empty_string[1] = { '\0' }; const char *prefix, *ptr_text; - long value; + long long value; /* make C compiler happy */ (void) pointer; @@ -5609,7 +5609,7 @@ COMMAND_CALLBACK(print) i++; if ((argv[i][0] == '-') || (argv[i][0] == '+')) { - if (!util_parse_long (argv[i] + 1, 10, &value)) + if (!util_parse_longlong (argv[i] + 1, 10, &value)) COMMAND_ERROR; gettimeofday (&tv_date, NULL); tv_date.tv_sec += (argv[i][0] == '+') ? value : value * -1;