aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorAntonin Décimo <antonin.decimo@gmail.com>2020-06-04 15:43:42 +0200
committerTudor Brindus <me@tbrindus.ca>2020-07-30 22:02:42 -0400
commitbbf7b92fe4b34288dbe7c58827a1f69428ffb263 (patch)
tree2837fac64c52cb5f51cc49367a40099068374de1 /sway/ipc-json.c
parenta1c6052383d382d978ca597dc5fb280c0343db60 (diff)
Fix incorrect format specifiers
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 70b81ad1..9330de09 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -160,7 +160,7 @@ json_object *ipc_json_get_version(void) {
int major = 0, minor = 0, patch = 0;
json_object *version = json_object_new_object();
- sscanf(SWAY_VERSION, "%u.%u.%u", &major, &minor, &patch);
+ sscanf(SWAY_VERSION, "%d.%d.%d", &major, &minor, &patch);
json_object_object_add(version, "human_readable", json_object_new_string(SWAY_VERSION));
json_object_object_add(version, "variant", json_object_new_string("sway"));