From c8c4d31ccab787135a3973f4d67fb7df60da9cff Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 12 Oct 2022 11:20:48 +0200 Subject: [PATCH] Add a FIXME to string.cpp --- libs/libc/src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/src/string.cpp b/libs/libc/src/string.cpp index a4afc53f..ca2e5da1 100644 --- a/libs/libc/src/string.cpp +++ b/libs/libc/src/string.cpp @@ -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);