Make sure any positive integer fits into the buffer

Avoids GCC 7.1.0 -Wformat-truncation.
This commit is contained in:
Andreas Schneider 2017-07-13 15:53:09 +02:00 committed by Foo
parent 8d577b5958
commit 73244eb976
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ inline size_t true_sun_len(const struct sockaddr_un *ptr) {
#endif #endif
#define ADDRESS_SIZE sizeof(ADDRESS_TEMPLATE) + (sizeof(uid_t) * 4) #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 BUF_SIZE 4096
#define NEW_ARGV_SIZE 200 #define NEW_ARGV_SIZE 200