LibGL: Use fallible version of StringBuilder::to_byte_buffer
This commit is contained in:
parent
058cc00837
commit
fc4d37eea5
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/karolba Commit: https://github.com/SerenityOS/serenity/commit/fc4d37eea5 Pull-request: https://github.com/SerenityOS/serenity/pull/17746 Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -952,7 +952,7 @@ ErrorOr<ByteBuffer> GLContext::build_extension_string()
|
|||
TRY(string_builder.try_join(' ', extensions));
|
||||
|
||||
// Create null-terminated string
|
||||
auto extensions_bytes = string_builder.to_byte_buffer();
|
||||
auto extensions_bytes = TRY(string_builder.try_to_byte_buffer());
|
||||
TRY(extensions_bytes.try_append(0));
|
||||
return extensions_bytes;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue