mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
LibC+LibCore: Remove serenity_setenv()
This was called from LibCore and passed raw StringView data that may not be null terminated, then incorrectly passed those strings to getenv() and also tried printing them with just the %s format specifier.
This commit is contained in:
parent
eea4dc5bfe
commit
b16ec1880c
3 changed files with 11 additions and 15 deletions
|
@ -32,7 +32,6 @@ int serenity_putenv(char const* new_var, size_t length);
|
|||
int unsetenv(char const*);
|
||||
int clearenv(void);
|
||||
int setenv(char const* name, char const* value, int overwrite);
|
||||
int serenity_setenv(char const* name, ssize_t name_length, char const* value, ssize_t value_length, int overwrite);
|
||||
char const* getprogname(void);
|
||||
void setprogname(char const*);
|
||||
int atoi(char const*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue