diff options
author | brian <brian@FreeBSD.org> | 2001-11-22 04:38:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-11-22 04:38:02 +0000 |
commit | b7afa276deb3c0f560c18ea20ad81ea920933a08 (patch) | |
tree | a4b34be0423633a84a3afd35d47dd536d5daa864 /libexec | |
parent | 3d0a99567db9d9a49310c151f101cb2bbf99785d (diff) | |
download | FreeBSD-src-b7afa276deb3c0f560c18ea20ad81ea920933a08.zip FreeBSD-src-b7afa276deb3c0f560c18ea20ad81ea920933a08.tar.gz |
Don't leave dodgy looking spaces in HISMACADDR
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/pppoed/pppoed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index 9d9eb8a..1dfdb3f 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); } |