more strncpy fix
This commit is contained in:
@@ -238,7 +238,7 @@ static char *asn1_oid_description(const char *oid, bool with_group_desc) {
|
||||
memset(res, 0x00, sizeof(res));
|
||||
|
||||
size_t len = strlen(get_my_executable_directory());
|
||||
if (len > 300) len = 299;
|
||||
if (len >= 300) len = 299;
|
||||
|
||||
strncpy(fname, get_my_executable_directory(), len);
|
||||
strcat(fname, "crypto/oids.json");
|
||||
|
||||
Reference in New Issue
Block a user