diff options
Diffstat (limited to 'tools/slang-generate/main.cpp')
| -rw-r--r-- | tools/slang-generate/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/slang-generate/main.cpp b/tools/slang-generate/main.cpp index be06836e7..979127f8d 100644 --- a/tools/slang-generate/main.cpp +++ b/tools/slang-generate/main.cpp @@ -558,7 +558,7 @@ void emitSimpleText( while (StringUtil::extractLine(content, line)) { // Write the line - fwrite(line.begin(), 1, line.size(), stream); + fwrite(line.begin(), 1, line.getLength(), stream); // Specially handle the 'final line', excluding an empty line after \n. // We can detect, as if input ends with 'cr/lf' combination, content.begin == span.end(), else if content.begin() == nullptr. |
