diff options
author | Owen Mooney <owen@owenmooney.com> | 2018-07-29 14:14:31 +0100 |
---|---|---|
committer | Owen Mooney <owen@owenmooney.com> | 2018-07-29 14:14:31 +0100 |
commit | b5c839d7f28cc635376d5bee36de0e898ad8a1b8 (patch) | |
tree | 86a162c084fef81cd5e6bb0d2398c62d6c9367c0 /dhcpv4/option_userclass.go | |
parent | b30145cf5536cc1a134ad83cfce21f0b7249cf84 (diff) |
Add support for modifiers to dhcpv4
Diffstat (limited to 'dhcpv4/option_userclass.go')
-rw-r--r-- | dhcpv4/option_userclass.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_userclass.go b/dhcpv4/option_userclass.go index 1505dbb..307a128 100644 --- a/dhcpv4/option_userclass.go +++ b/dhcpv4/option_userclass.go @@ -39,7 +39,7 @@ func (op *OptUserClass) Length() int { } func (op *OptUserClass) String() string { - ucStrings := make([]string, len(op.UserClasses)) + ucStrings := make([]string, 0, len(op.UserClasses)) for _, uc := range op.UserClasses { ucStrings = append(ucStrings, string(uc)) } |