Merge pull request #68 from ailin-nemui/gint64fmt

use gint64 define

(cherry picked from commit cf6bc31172)
This commit is contained in:
ailin-nemui 2022-02-19 11:00:34 +01:00 committed by Ailin Nemui
commit aa54da3811
2 changed files with 8 additions and 2 deletions

View file

@ -128,7 +128,10 @@ static void ctcp_ping_reply(IRC_SERVER_REC *server, const char *data,
g_return_if_fail(data != NULL);
if (sscanf(data, "%ld %ld", &tv, &tv2) < 1) {
if (sscanf(data,
"%" G_GINT64_FORMAT " "
"%" G_GINT64_FORMAT,
&tv, &tv2) < 1) {
char *tmp = g_strconcat("PING ", data, NULL);
ctcp_default_reply(server, tmp, nick, addr, target);
g_free(tmp);