Skip to content

Commit f011b5c

Browse files
authored
Fix unescaped NUL character in JS (emscripten-core#19231)
1 parent d8c1a8a commit f011b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mergeInto(LibraryManager.library, {
101101
* @param {number} ptr
102102
* @param {number=} maxBytesToRead - An optional length that specifies the
103103
* maximum number of bytes to read. You can omit this parameter to scan the
104-
* string until the first \0 byte. If maxBytesToRead is passed, and the string
104+
* string until the first 0 byte. If maxBytesToRead is passed, and the string
105105
* at [ptr, ptr+maxBytesToReadr[ contains a null byte in the middle, then the
106106
* string will cut short at that byte index (i.e. maxBytesToRead will not
107107
* produce a string of exact length [ptr, ptr+maxBytesToRead[) N.B. mixing

0 commit comments

Comments
 (0)