summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a5e7a3)
raw | patch | inline | side by side (parent: 4a5e7a3)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 1 Jun 2007 16:06:52 +0000 (18:06 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 1 Jun 2007 16:06:52 +0000 (18:06 +0200) |
The implementation apparently differs between versions.
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 6e15a61d08df51640748f549dd1184e652e837da..64f41ada9889a182e0ed89791bacaa3bede20cbc 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
/* 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);