mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-02-18 02:02:41 +00:00
![Simon Ser](/assets/img/avatar_default.png)
TOKEN_STRLEN is not actually the strlen() of the token. It's the size taken by the token included the final zero byte. Change the name to make this clearer, and remove unnecessary +1's.
11 lines
146 B
C
11 lines
146 B
C
#ifndef UTIL_TOKEN_H
|
|
#define UTIL_TOKEN_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define TOKEN_SIZE 33
|
|
|
|
bool generate_token(char out[static TOKEN_SIZE]);
|
|
|
|
#endif
|