diff options
author | Trumeet <yuuta@yuuta.moe> | 2021-09-07 11:15:33 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2021-09-07 11:15:33 -0700 |
commit | a719ddce517a21b90ff39e262f1b5c5630a7774a (patch) | |
tree | 333f80e93d428c87ec30b4ad2ef6450136db75e5 | |
parent | b5e2c41f7445882596e992d3a06ce146911ff8c3 (diff) | |
download | minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.tar minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.tar.gz minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.tar.bz2 minebridge-a719ddce517a21b90ff39e262f1b5c5630a7774a.zip |
fix: use %ld for int64_t
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |