Make sure any positive integer fits into the buffer
Avoids GCC 7.1.0 -Wformat-truncation.
This commit is contained in:
parent
8d577b5958
commit
73244eb976
|
@ -71,7 +71,7 @@ inline size_t true_sun_len(const struct sockaddr_un *ptr) {
|
|||
#endif
|
||||
|
||||
#define ADDRESS_SIZE sizeof(ADDRESS_TEMPLATE) + (sizeof(uid_t) * 4)
|
||||
#define NUM_ARGS_SIZE (sizeof(int) * 2)
|
||||
#define NUM_ARGS_SIZE (sizeof(int) * 2 + 1)
|
||||
#define BUF_SIZE 4096
|
||||
#define NEW_ARGV_SIZE 200
|
||||
|
||||
|
|
Loading…
Reference in New Issue