From b5c025b8295eeac43296578748afdeea45a12606 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 22 Nov 2001 04:38:02 +0000 Subject: [PATCH] Don't leave dodgy looking spaces in HISMACADDR --- libexec/pppoed/pppoed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index 9d9eb8a0f49..1dfdb3f4b5b 100644 --- a/libexec/pppoed/pppoed.c +++ b/libexec/pppoed/pppoed.c @@ -350,9 +350,9 @@ Spawn(const char *prog, const char *acname, const char *provider, if (sz >= sizeof(struct ether_header)) { macaddr = ((struct ether_header *)request)->ether_shost; - snprintf(env, sizeof(env), "%s=%2x:%2x:%2x:%2x:%2x:%2x", HISMACADDR, - macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], - macaddr[5]); + snprintf(env, sizeof(env), "%s=%x:%x:%x:%x:%x:%x", HISMACADDR, + macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], + macaddr[5]); if (putenv(env) != 0) syslog(LOG_INFO, "putenv: cannot set %s: %m", env); }