Very minor SNMP bug report and fix.

Giganews Newsgroups
Subject: Very minor SNMP bug report and fix.
Posted by:  Xepol (spam@xepol.com)
Date: Sun, 9 Dec 2007

In the Dec 8, 2007 snapshot, in IdASN1Util.pas,

Line 351 reads

s := Copy(s, lx + 1, MaxInt);

but should read:

s := Copy(s, lx + 1, Length(s) - lx);

While MaxInt works fine on the Win32 platform, it is a bad design pattern
for dotNet.

- Clinton R. Johnson

Replies