Add a FIXME to string.cpp

This commit is contained in:
apio 2022-10-12 11:20:48 +02:00
parent 19ee20b6f5
commit c8c4d31cca

View File

@ -30,7 +30,7 @@ extern "C"
return dest;
}
char* strncpy(char* dest, const char* src, size_t max)
char* strncpy(char* dest, const char* src, size_t max) // FIXME: Implement strncpy according to the specification.
{
size_t src_len = strlen(src) + 1; // NULL byte
memcpy(dest, src, src_len > max ? max : src_len);