Skip to content

Commit

Permalink
Fix GCC truncation warnings, too small buffers
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed Apr 11, 2020
1 parent 6a7f489 commit 8379b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/serv.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ int serv_list(char *arg)
int serv_enable(char *arg)
{
char corr[40];
char link[80];
char path[80];
char link[256];
char path[256];

if (!arg || !arg[0])
return serv_list(NULL);
Expand Down Expand Up @@ -157,7 +157,7 @@ int serv_enable(char *arg)
int serv_disable(char *arg)
{
char corr[40];
char link[80];
char link[256];
struct stat st;

if (!arg || !arg[0])
Expand Down

0 comments on commit 8379b49

Please sign in to comment.