Skip to content

Commit

Permalink
[common] don't hardcode max path size
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Sep 14, 2017
1 parent f13fb2f commit 7d69bec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libknet/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <dlfcn.h>
#include <errno.h>
#include <string.h>
#include <sys/param.h>

#include "logging.h"
#include "common.h"
Expand Down Expand Up @@ -52,7 +53,7 @@ int _fdset_nonblock(int fd)
void *open_lib(knet_handle_t knet_h, const char *libname, int extra_flags)
{
char *error = NULL;
char path[4096];
char path[MAXPATHLEN];
void *ret = NULL;

/*
Expand Down

0 comments on commit 7d69bec

Please sign in to comment.