Another fix for assign_function().
The last commit incorrectly set up the function args.
Authored by: bugman 2008-10-07
Parent: [r7578]
Child: [r7580]