1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:27:45 +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:
Ben Wiederhake 2020-08-16 01:37:32 +02:00 committed by Andreas Kling
parent 2d34f0f93a
commit 0240baa42d
3 changed files with 30 additions and 0 deletions

View file

@ -37,6 +37,7 @@ int vdbgprintf(const char* fmt, va_list);
int dbgprintf(const char* fmt, ...);
ssize_t dbgputstr(const char*, ssize_t);
int sprintf(char* buf, const char* fmt, ...);
int snprintf(char* buffer, size_t, const char* fmt, ...);
}
# endif
#else