Is there a limit to the number of groups a user can be part of?

I'm having trouble with a client machine where a user is a part of about
50 groups (eek, i know), and everything works fine from the command line,
but when the user tries to modify files through ftp (running ProFTPd
1.2.2rc3), it works if the group name is within the first 512 characters
that get returned when you runs 'groups username', but gets a permission
denied if it's after the 512-character boundary.

I'm guessing that it's an issue with the buffer size in ProFTPd, but just
thought I'd ask if there is a theoretical maximum to the number of groups
a user can be in (or the number of characters that make up the group name.
:)

-- 
Nate Carlson <natecars at real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500