From a719ddce517a21b90ff39e262f1b5c5630a7774a Mon Sep 17 00:00:00 2001 From: Trumeet Date: Tue, 7 Sep 2021 11:15:33 -0700 Subject: fix: use %ld for int64_t --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 50d05ff..b86e6e6 100644 --- a/main.c +++ b/main.c @@ -185,7 +185,7 @@ run: else sprintf(username, "@%s\n", tgmsg->from->username); json_object_object_add(contents_1_text_1, "text", json_object_new_string(username)); json_object *contents_1_text_2 = json_object_new_object(); - sprintf(uid, "UID: %d", tgmsg->from->id); + sprintf(uid, "UID: %ld", tgmsg->from->id); json_object_object_add(contents_1_text_2, "text", json_object_new_string(uid)); json_object_array_add(contents_1, contents_1_text_1); json_object_array_add(contents_1, contents_1_text_2); -- cgit v1.2.3