1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix length calculation when reading library file

This commit is contained in:
Nick O'Leary 2019-05-24 11:36:05 +01:00
parent b68835f171
commit a694b0364d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -85,6 +85,7 @@ function getFileBody(root,path) {
body += remaining; body += remaining;
} }
} else { } else {
read += thisRead;
body += buffer.slice(0,thisRead).toString(); body += buffer.slice(0,thisRead).toString();
} }
} }