diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-16 16:02:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-24 00:45:03 +0200 |
commit | d5b7c28a5efe9af3e672748464d3e07f6d221edc (patch) | |
tree | dd2c7c4956bd9fa588c8faf9ca44cab41c41af11 /Kernel/StdLib.h | |
parent | 9795c61464413f876d2248271d1c074fe63df66d (diff) | |
download | serenity-d5b7c28a5efe9af3e672748464d3e07f6d221edc.zip |
Kernel: Remove strcpy()
These are not called in the kernel or by libstdc++ anyway.
Remove the tempting function, and prevent future overflows.
Diffstat (limited to 'Kernel/StdLib.h')
-rw-r--r-- | Kernel/StdLib.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/StdLib.h b/Kernel/StdLib.h index 48075e9935..1a9398700f 100644 --- a/Kernel/StdLib.h +++ b/Kernel/StdLib.h @@ -42,7 +42,6 @@ void copy_from_user(void*, const void*, size_t); void memset_user(void*, int, size_t); void* memcpy(void*, const void*, size_t); -char* strcpy(char*, const char*); int strncmp(const char* s1, const char* s2, size_t n); char* strstr(const char* haystack, const char* needle); int strcmp(char const*, const char*); @@ -69,7 +68,6 @@ inline void copy_to_user(T* dest, const T* src) copy_to_user(dest, src, sizeof(T)); } - template<typename T> inline void copy_from_user(T* dest, Userspace<const T*> src) { |