Remove libbsd and strlcpy
This commit is contained in:
parent
3f11431df6
commit
1f315d2b92
15 changed files with 53 additions and 50 deletions
src
|
@ -1,5 +1,3 @@
|
|||
#include <bsd/string.h>
|
||||
|
||||
#include <cache.h>
|
||||
#include <logger.h>
|
||||
#include <models/junction_relay_schedule.h>
|
||||
|
@ -34,7 +32,8 @@ cache_get_value(char *key)
|
|||
free(result);
|
||||
}
|
||||
result = (char*)malloc(sizeof(char) * (found_value_len + 1));
|
||||
strlcpy(result, found_value, found_value_len + 1);
|
||||
strncpy(result, found_value, found_value_len);
|
||||
result[found_value_len] = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue