diff options
author | wpaul <wpaul@FreeBSD.org> | 2003-12-30 00:30:45 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2003-12-30 00:30:45 +0000 |
commit | 0349754c19e68a2772d230b459d076d752d26b19 (patch) | |
tree | 504ee132323953c3d00e239f602997c65f44b008 /usr.sbin/ndiscvt | |
parent | 5319092108879a7923e91f3e92090baf459d07ac (diff) | |
download | FreeBSD-src-0349754c19e68a2772d230b459d076d752d26b19.zip FreeBSD-src-0349754c19e68a2772d230b459d076d752d26b19.tar.gz |
Remember to use stringcvt() to expand %foo% strings in registry values in
dump_defaultinfo().
Noticed by: green@freebsd.org
Diffstat (limited to 'usr.sbin/ndiscvt')
-rw-r--r-- | usr.sbin/ndiscvt/inf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ndiscvt/inf.c b/usr.sbin/ndiscvt/inf.c index 30bc256..8a9d234 100644 --- a/usr.sbin/ndiscvt/inf.c +++ b/usr.sbin/ndiscvt/inf.c @@ -303,7 +303,7 @@ dump_defaultinfo(const struct section *s, const struct reg *r, int devidx) if (strcasecmp(reg->key, "Default")) continue; fprintf(ofp, "\n\t{ \"%s\" }, %d },", reg->value == NULL ? "" : - reg->value, devidx); + stringcvt(reg->value), devidx); break; } return; |