Commit 400055bf authored by Steve Holme's avatar Steve Holme Committed by Daniel Stenberg
Browse files

smtp_connect: use defined buffer length for hostname

parent 5801ddb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1100,7 +1100,7 @@ static CURLcode smtp_connect(struct connectdata *conn,
  struct pingpong *pp = &smtpc->pp;
  struct pingpong *pp = &smtpc->pp;
  const char *path = conn->data->state.path;
  const char *path = conn->data->state.path;
  int len;
  int len;
  char localhost[1024 + 1];
  char localhost[HOSTNAME_MAX + 1];


  *done = FALSE; /* default to not done yet */
  *done = FALSE; /* default to not done yet */