Skip to content

Commit

Permalink
fix CDRWriter.writeString()
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Jul 8, 2024
1 parent f80f3bb commit 9bc0c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdrwriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class CDRWriter {

writeString(s) {
// Note: Add null-termination char as not present in JavaScript String
this.writeUint32(s.len + 1);
this.writeUint32(s.length + 1);
this.buf.writeUTF8String(s);
this.writeByte(0);
}
Expand Down

0 comments on commit 9bc0c87

Please sign in to comment.