Remove libbsd and strlcpy

This commit is contained in:
Tobias Reisinger 2020-11-19 23:36:02 +01:00
parent 3f11431df6
commit 1f315d2b92
15 changed files with 53 additions and 50 deletions

View file

@ -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
{