summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4a5e7a3)
The implementation apparently differs between versions.
/* Get instance name */
if ((vb->type == ASN_OCTET_STR) || (vb->type == ASN_BIT_STR))
{
/* Get instance name */
if ((vb->type == ASN_OCTET_STR) || (vb->type == ASN_BIT_STR))
{
- strncpy (il->instance, vb->val.bitstring,
+ strncpy (il->instance, (char *) vb->val.bitstring,
sizeof (il->instance));
il->instance[sizeof (il->instance) - 1] = '\0';
DEBUG ("Before escape_slashes: %s", il->instance);
sizeof (il->instance));
il->instance[sizeof (il->instance) - 1] = '\0';
DEBUG ("Before escape_slashes: %s", il->instance);