Skip to content

Commit

Permalink
decoder: remove last char (0) of uevent value
Browse files Browse the repository at this point in the history
  • Loading branch information
s-urbaniak committed Dec 28, 2015
1 parent 9919105 commit 54a3995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ loop:
return nil, errors.New("error decoding uevent: unknown format")
}

k, v := kv[:i], kv[i+1:]
k, v := kv[:i], kv[i+1:len(kv)-1] // last char is zero (0)
ev.Vars[k] = v

switch k {
Expand Down

0 comments on commit 54a3995

Please sign in to comment.