Reserve enough space for full possible fd length

Even if file descriptor values would not exercise the full range provided
by int, it doesn't hurt to allocate enough space for all ints.

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee 2024-09-26 08:56:40 -07:00
parent f7b5d0e783
commit 823d14df80

View file

@ -25,7 +25,7 @@
#include <unistd.h>
#define BUF_LEN 128
#define FD_STR_LEN 4
#define FD_STR_LEN 16
int main(int argc, char *argv[])
{