diff options
author | Antonin Décimo <antonin.decimo@gmail.com> | 2020-06-04 15:43:42 +0200 |
---|---|---|
committer | Tudor Brindus <me@tbrindus.ca> | 2020-07-30 22:02:42 -0400 |
commit | bbf7b92fe4b34288dbe7c58827a1f69428ffb263 (patch) | |
tree | 2837fac64c52cb5f51cc49367a40099068374de1 /sway/ipc-json.c | |
parent | Log empty value if envvar is not defined (diff) | |
download | sway-bbf7b92fe4b34288dbe7c58827a1f69428ffb263.tar.gz sway-bbf7b92fe4b34288dbe7c58827a1f69428ffb263.tar.zst sway-bbf7b92fe4b34288dbe7c58827a1f69428ffb263.zip |
Fix incorrect format specifiers
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 2 |
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) { | |||
160 | int major = 0, minor = 0, patch = 0; | 160 | int major = 0, minor = 0, patch = 0; |
161 | json_object *version = json_object_new_object(); | 161 | json_object *version = json_object_new_object(); |
162 | 162 | ||
163 | sscanf(SWAY_VERSION, "%u.%u.%u", &major, &minor, &patch); | 163 | sscanf(SWAY_VERSION, "%d.%d.%d", &major, &minor, &patch); |
164 | 164 | ||
165 | json_object_object_add(version, "human_readable", json_object_new_string(SWAY_VERSION)); | 165 | json_object_object_add(version, "human_readable", json_object_new_string(SWAY_VERSION)); |
166 | json_object_object_add(version, "variant", json_object_new_string("sway")); | 166 | json_object_object_add(version, "variant", json_object_new_string("sway")); |