Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 314d82c3 authored by Erik Kline's avatar Erik Kline
Browse files

Make sure errmsg starts out null-terminated.

Also: clean up some stray trailing whitespace.

Change-Id: I12471b6059971c9c25d7ff6475bfad43cbee44f6
parent c2291a7e
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ static const char DHCP_CONFIG_PATH[] = "/system/etc/dhcpcd/dhcpcd.conf";
static const int NAP_TIME = 200;   /* wait for 200ms at a time */
                                  /* when polling for property values */
static const char DAEMON_NAME_RENEW[]  = "iprenew";
static char errmsg[100] = "";
static char errmsg[100] = "\0";
/* interface length for dhcpcd daemon start (dhcpcd_<interface> as defined in init.rc file)
 * or for filling up system properties dhcpcd.<interface>.ipaddress, dhcpcd.<interface>.dns1
 * and other properties on a successful bind