aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-09-07 11:15:33 -0700
committerTrumeet <yuuta@yuuta.moe>2021-09-07 11:15:33 -0700
commita719ddce517a21b90ff39e262f1b5c5630a7774a (patch)
tree333f80e93d428c87ec30b4ad2ef6450136db75e5
parentb5e2c41f7445882596e992d3a06ce146911ff8c3 (diff)
downloadminebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.tar
minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.tar.gz
minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.tar.bz2
minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.zip
fix: use %ld for int64_t
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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);