mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
AK+Kernel: Support snprintf
In contrast to sprintf, which might overflow the given buffer. I feel bad about the code duplication, but that is a pre-existing issue.
This commit is contained in:
parent
2d34f0f93a
commit
0240baa42d
Notes:
sideshowbarker
2024-07-19 03:17:14 +09:00
Author: https://github.com/BenWiederhake
Commit: 0240baa42d
Pull-request: https://github.com/SerenityOS/serenity/pull/3263
3 changed files with 30 additions and 0 deletions
|
@ -34,6 +34,7 @@ int dbgputstr(const char*, int);
|
|||
int kernelputstr(const char*, int);
|
||||
int kprintf(const char* fmt, ...);
|
||||
int sprintf(char* buf, const char* fmt, ...);
|
||||
int snprintf(char* buf, size_t, const char* fmt, ...);
|
||||
void set_serial_debug(bool on_or_off);
|
||||
int get_serial_debug();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue