mirror of
https://github.com/Tha14/toxic.git
synced 2025-01-31 10:57:22 +01:00
Sergei Trofimovich
41e93adbdb
game_chess.c: always use "%s"-style format for printf()-style functions
`ncuses-6.3` added printf-style function attributes and now makes it easier to catch cases when user input is used in palce of format string when built with CFLAGS=-Werror=format-security: toxic/src/game_chess.c:1633:63: error: format not a string literal and no format arguments [-Werror=format-security] 1633 | mvwprintw(win, board->y_bottom_bound + 2, x_mid, state->status_message); | ~~~~~^~~~~~~~~~~~~~~~ Let's wrap all the missing places with "%s" format.
Toxic is a Tox-based instant messaging and video chat client.
Installation
Settings
Running Toxic for the first time creates an empty file called toxic.conf in your home configuration directory ("~/.config/tox" for Linux users). Adding options to this file allows you to enable auto-logging, change the time format (12/24 hour), and much more. You can view our example config file here.
Troubleshooting
If your default prefix is "/usr/local" and you receive the following:
error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory
you can attempt to correct it by running sudo ldconfig
. If that doesn't work, run:
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
sudo ldconfig
Description
Languages
C
95.5%
Makefile
1.8%
Objective-C
1%
Shell
1%
Python
0.6%
Other
0.1%