We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb006c2 commit f42f9c7Copy full SHA for f42f9c7
lib/encode.js
@@ -35,8 +35,7 @@ module.exports = exports = function (info) {
35
assert(type === 0 || type === 1, 'Type is valid')
36
buf.writeUInt16BE(type, 8)
37
38
- var volNameLength = info.volume.name.length
39
- assert(volNameLength <= 27, 'Volume name is not longer than 27 chars')
+ var volNameLength = info.volume.name.slice(0,27).length
40
buf.writeUInt8(volNameLength, 10)
41
buf.fill(0, 11, 11 + 27)
42
buf.write(info.volume.name, 11, 'utf8')
0 commit comments