21 lines
728 B
Diff
21 lines
728 B
Diff
|
--- snmplib/mib.c.xx 2005-02-02 21:14:34.167265497 +0100
|
||
|
+++ snmplib/mib.c 2005-02-02 21:15:40.937887906 +0100
|
||
|
@@ -1521,7 +1521,7 @@
|
||
|
return 0;
|
||
|
}
|
||
|
} else {
|
||
|
- sprintf(tmp, "%lu", *var->val.integer);
|
||
|
+ sprintf(tmp, "%u", (unsigned int)(*var->val.integer & 0xffffffff));
|
||
|
if (!snmp_strcat
|
||
|
(buf, buf_len, out_len, allow_realloc, (const u_char *) tmp)) {
|
||
|
return 0;
|
||
|
@@ -1585,7 +1585,7 @@
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
- sprintf(tmp, "%lu", *var->val.integer);
|
||
|
+ sprintf(tmp, "%u", (unsigned int)(*var->val.integer & 0xffffffff));
|
||
|
if (!snmp_strcat
|
||
|
(buf, buf_len, out_len, allow_realloc, (const u_char *) tmp)) {
|
||
|
return 0;
|