mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
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:
parent
f7b5d0e783
commit
823d14df80
1 changed files with 1 additions and 1 deletions
|
@ -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[])
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue