diff options
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")); |