mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Fix incorrect format specifiers
This commit is contained in:
parent
a1c6052383
commit
bbf7b92fe4
7 changed files with 10 additions and 10 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue