diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2019-12-07 22:29:20 +0800 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-22 11:23:41 +0100 |
commit | fc6c0ca12e941d5d7d567834bff3ab7df9447001 (patch) | |
tree | 9da2849a21ef864d226b5b080f67b605b6b6d077 /render/gles2/texture.c | |
parent | 01818ad2c8c6b6bf3f77955775ccd5b1cffa0b29 (diff) |
backend/session/freebsd: Fix the way to get TTY path
Previously, the path of TTY is generated using snprintf with %d format.
It works with TTY 1 to 10, but fails with TTY with greater number
because the number used in the name is in base 32 instead of base 10.
Since there is no standard function to convert a number to a string with
a custom base, this commit adds a function to do it.
Fixes: https://github.com/swaywm/wlroots/issues/1854
Diffstat (limited to 'render/gles2/texture.c')
0 files changed, 0 insertions, 0 deletions