#20 libset fails for libraries < 3 chars

closed-duplicate
cpptasks (103)
5
2003-10-16
2002-12-17
Rob Rowan
No

libset fails for libraries < 3 chars like libm
Bug occurs on line 176 of
net.sf.antcontrib.cpptasks.types.LibrarySet
When the length of the library is < 3,
the substring fails.
The fix I put in was:
I just put a
if (libnames.length >= 3) {
lines 176-178
}

That way if the length is < 3 it does not
check for "lib".
Attached is my fix.

Discussion

  • Rob Rowan

    Rob Rowan - 2002-12-17

    Logged In: YES
    user_id=671191

    Sorry uploaded twice by accident.

     
  • Curt Arnold

    Curt Arnold - 2003-10-16
    • labels: --> cpptasks
    • assigned_to: nobody --> carnold
    • status: open --> closed-duplicate
     

Log in to post a comment.