Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dhcpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ int
dhcpcd_selectprofile(struct interface *ifp, const char *profile)
{
struct if_options *ifo;
char pssid[PROFILE_LEN];
char pssid[(IF_SSIDLEN * 4) + 1];

if (ifp->ssid_len) {
ssize_t r;
Expand Down Expand Up @@ -717,7 +717,7 @@ dhcpcd_initstate(struct interface *ifp, unsigned long long options)
static void
dhcpcd_reportssid(struct interface *ifp)
{
char pssid[IF_SSIDLEN * 4];
char pssid[(IF_SSIDLEN * 4) + 1];

if (print_string(pssid, sizeof(pssid), OT_ESCSTRING, ifp->ssid,
ifp->ssid_len) == -1) {
Expand Down