Trim deserialized strings
netlink/route/attrs.scm
159 | 159 | ||
160 | 160 | (define (deserialize-route-attr-data-string decoder bv pos) | |
161 | 161 | (make-string-route-attr | |
162 | - | (or (false-if-exception (utf8->string bv)) | |
162 | + | (or (false-if-exception (string-trim-right (utf8->string bv) #\nul)) | |
163 | 163 | (make-string (bytevector-length bv) #\a)))) | |
164 | 164 | ||
165 | 165 | (define (deserialize-route-attr-data-u32 decoder bv pos) |